How should the developer declare maxAttempts to meet these requirements?

A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable’s state between trigger executions.

How should the developer declare maxAttempts to meet these requirements?
A . Declare maxattempts as a member variable on the trigger definition.
B. Declare maxattempts as a private static variable on a helper class
C. Declare maxattempts as a constant using the static and final keywords
D. Declare maxattempts as a variable on a helper class

Answer: C

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments