Difference Between WhoId and WhatId in Salesforce

WhoId in Salesforce: It refers to people such as Lead or Contact.

WhatId in Salesforce: It refers to object type such as Account, Opportunity, Campaign, Case or Custom objects.