function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Biswajit SamantarayBiswajit Samantaray 

What is the funadmental difference between object and sobject in salesforce?

 Please need this profound answer. Like is one of them supposed to work in such situations and the other is not,...
SwethaSwetha (Salesforce Developers) 
HI Biswajit,

An Object is any type of value that can be represented. They can be Integers, Strings, Booleans, custom classes, SObjects, and more. Sobjects are specific subtype that represents database records, including standard objects like Accounts and Cases, custom objects, custom settings, and custom metadata.

An SObject represents a specific table in the database that you can discretely query. Standard SObjects have names like Account or Opportunity, whereas Custom SObjects and Custom Settings have names like MyObject__c or MySetting__c.

You can store any specific record in a generic SObject property. If you do so, you lose the ability to get/set most fields by name, but can get them generically.
 
SObject  genericAccount = new Account();
genericAccount.put('Name', 'value');

Account  specificAccount = new Account();
specificAccount.Name = 'value';

Reference: https://salesforce.stackexchange.com/questions/200301/s-object-and-standard-object
https://salesforce.stackexchange.com/questions/131733/can-someone-please-explain-what-is-meant-by-sobject

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you