Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer I Topic 2 Question 111 Discussion

Actual exam question for Salesforce's Platform Developer I exam
Question #: 111
Topic #: 2
[All Platform Developer I Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Adelaide
1 days ago
I agree with Patti, because throwing the exception is the correct way to handle errors.
upvoted 0 times
...
Elfriede
2 days ago
A and B are the correct ways to fire the custom exception. C and D don't actually throw the exception.
upvoted 0 times
...
Patti
2 days ago
I think the answer is A) throw new ParityException();
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77