Apex Batch – Use of Interface Database.Stateful in Batch Class
Hello guys, Today, we will talk about interface named as Database.Stateful, it is used when we want to maintain the state across the batch call methods. In interface Database.Stateful, the instance member variable of class maintain their values between transactions of execute() method while the static variable does not support this feature in Batch class. For…