Cover image for Nagarro
Logo

Nagarro

Engaged Employer

Nagarro

Add an Interview

Interview Question

Salesforce Developer Interview

-

Nagarro

Can a batch be called from the execute method of another batch apex?

Interview Answers

4 Answers

3

No.. another batch class can be called from a start or a finish method of our batch class. But never from the execute method.

Anonymous on

0

No

Rahul Kumar on

0

Yes but only from finish method else it will throw a run time error

Anonymous on

0

No, We cannot call another batch class from execute method but we can call it from Finish method else it will throw runtime error as async cannot call batch class from start, execute or finish

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.