PDI practice question 5 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?
Question 5 of 30
Keep practicing
Take the free PDI practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PDI practice questions
- Question 1What can be used to override the Account's standard Edit button for Lightning Experience?
- Question 4Universal Containers (UC) wants to lower its shipping cost while making the shipping proc…
- Question 7Universal Containers wants to back up all of the data and attachments in its Salesforce o…
- Question 8Universal Containers hires a developer to build a custom search page to help users find t…
- Question 10Universal Containers has an order system that uses an Order Number to identify an order f…
- Question 11In terms of the MVC paradigm, what are two advantages of implementing the view layer of a…
