What are two ways the developer can fire the exception in Apex?

A developer creates a custom exception as shown below:

What are two ways the developer can fire the exception in Apex? Choose 2 answers
A . Throw new ParityException (parity does not match);
B . New ParityException( );
C . New ParityException (parity does not match);
D . Throw new parityException ( );

Answer: A,D

Latest PDI Practice Questions with 191 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments