Salesforce
CRT-450 · Question #42
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
The correct answer is B. A custom exception class can implement one or many interfaces. D. A custom exception class name must end with "Exception". E. A custom exception class can extend other classes besides the Exception class. See the full explanation below for the reasoning.
Question
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
Options
- AA custom exception class must extend the system Exception class.
- BA custom exception class can implement one or many interfaces.
- CA custom exception class cannot contain member variables or methods.
- DA custom exception class name must end with "Exception".
- EA custom exception class can extend other classes besides the Exception class.
How the community answered
(53 responses)- A13% (7)
- B79% (42)
- C8% (4)
Community Discussion
No community discussion yet for this question.