Salesforce Interview Questions and Answers
Question: What is the purpose of the '@isTest' annotation in Apex?Answer: The '@isTest' annotation in Apex is used to define a class or method as a test class or test method. It ensures that the enclosed code is treated as test code and doesn't count against the organization's code size limits. |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: