PrepAway - Latest Free Exam Questions & Answers

How should a developer create a new custom exception class?

How should a developer create a new custom exception class?

A. CustomException ex = new (CustomException) Exception ();

B. public class CustomException extends Exception {}

C. (Exception) CustomException ex = new Exception ();
D. public class CustomException implements Exception {}


Leave a Reply