Plat-Dev-201 practice question 25 of 30

A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value…

Choose your answer, then check it against the explanation.

A developer has an integer variable called maxAttempts. The developer needs to ensure that once maxAttempts is initialized, it preserves its value for the length 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?
Answer options
Question 25 of 30

Keep practicing

Take the free Plat-Dev-201 practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other Plat-Dev-201 practice questions

Scroll to Top