Synchronous and Asynchronous calls using Apex in Salesforce

Apex can be executed synchronously or asynchronously.Synchronous:In a Synchronous call, the thread will wait until it completes its tasks before proceeding to next. In a Synchronous call, the code runs in single thread. Example: Asynchronous:In a Asynchronous call, the thread will not wait until it completes its tasks before proceeding to next. Instead it proceeds … Continue reading Synchronous and Asynchronous calls using Apex in Salesforce