Which three statements are true regarding custom exceptions in Apex? (Choose three.)
A. A custom exception class must extend the system Exception class.
B. A custom exception class can implement one or many interfaces.
C. A custom exception class cannot contain member variables or methods.
D. A custom exception class name must end with "Exception".
E. A custom exception class can extend other classes besides the Exception class.
CRT-450: Salesforce Certified Platform Developer IFree dumps for CRT-450 in PDF format.High quality CRT-450 PDF and software. VALID exam to help you pass. |
A B D are correct ans
To create your custom exception class, extend the built-in Exception class and make sure your class name ends with the word Exception, such as “MyException” or “PurchaseException”.
Hi Tamil, E is wrong, as one call can extend only one class.
D is not must have option
Hi Tamil, E is wrong, as one call can extend only one class.
A,B & D = Correct ans
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_exception_custom.htm