Question: What is the purpose of the 'Database.Stateful' interface in Apex?Answer: The 'Database.Stateful' interface in Apex is used to maintain the state of variables between different invocations of a batch Apex job. It allows variables to retain their values throughout the execution of the batch. |
Is it helpful?
Yes
No
Most helpful rated by users: