Java - Custom Exceptions
Which of the following is the correct way to declare a custom checked exception class in Java?
Exception but not RuntimeException. Unchecked exceptions extend RuntimeException.Exception creates a checked exception, which requires handling or declaration.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions