in Salesforce by
What are the different methods of Batch Apex Class?

► Click here to show 1 Answer

0 votes
Database.Batchable interface contains three methods that must be implemented:

Start method:

global (Database.QueryLocator | Iterable<sObject>) start(Database.BatchableContext bc) {}

Execute method:

global void execute(Database.BatchableContext BC, list<P>){}

Finish method:

global void finish(Database.BatchableContext BC){}
Learn More with Madanswer

Related questions

0 votes
asked Feb 3, 2020 in Salesforce by SakshiSharma