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
Mahesh GorrepatiMahesh Gorrepati 

can we create other methods in batch class of an apex apart from start , execute and finish methods?

can we create other methods in batch class of an apex apart from start , execute and finish methods?
Best Answer chosen by Mahesh Gorrepati
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Mahesh,

Yes you can create any number of custom methods in Batch class. But the rule is that you should implement Start(), execute() and Finish() methods for sure .

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Mahesh,

Yes you can create any number of custom methods in Batch class. But the rule is that you should implement Start(), execute() and Finish() methods for sure .

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,
This was selected as the best answer
Mahesh GorrepatiMahesh Gorrepati
Thank you for your response.

can you share any docs related to the custom methods ? and flow of exeution  with custom methods in batch programming?