Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 55 discussion

Actual exam question from Salesforce's CRT-450
Question #: 55
Topic #: 1
[All CRT-450 Questions]

How should a developer create a new custom exception class?

  • A. public class CustomException extends Exception{}
  • B. CustomException ex = new (CustomException)Exception();
  • C. public class CustomException implements Exception{}
  • D. (Exception)CustomException ex = new Exception();
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ABHI0O07
8 months ago
cuustomexception always inherits .so A is correct .extends
upvoted 1 times
...
TiagoFern
8 months, 1 week ago
Selected Answer: A
Correct Its A 100%
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...