Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 19 Topic 2 Discussion

Salesforce Certified Platform Developer 1 (SP25) CRT-450 Question # 19 Topic 2 Discussion

CRT-450 Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

A developer creates a custom exception as shown below:

public class ParityException extends Exception { }

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


A.

throw new ParityException ();


B.

throw new parityException ('parity does not match');


C.

new ParityException ();


D.

new ParityException('parity does not match');


Get Premium CRT-450 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.