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? A. Declare maxAttempts as a private static variable on a helper class. B. Declare maxAttempts as a variable on a helper class. C. Declare maxAttempts as a member variable on the trigger definition. D. Declare maxAttempts as a constant using the static and final keywords. Â Suggested Answer: D Community Answer: D This question is in CRT-450 Salesforce Certified Platform Developer I Exam For getting Salesforce Certified Platform Developer I Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Salesforce. Trademarks, certification & product names are used for reference only and belong to Salesforce. The website does not contain actual questions and answers from Salesforce's Certification Exams.
Please login or Register to submit your answer