Java - Custom Exceptions
Which of the following is the correct way to declare a custom checked exception in Java?
Exception but not RuntimeException.RuntimeException creates an unchecked exception. Extending Error is for system errors. Extending Exception creates a checked exception. Extending Throwable is too general.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions