How should a developer create a new custom exception class?

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();

Answer: A

Latest DEX-450 Practice Questions with 456 Q&As

Updated Study Material | Instant Download | Detailed Answers and Explanations

Subscribe
Notify of
guest
0 Comments