Which three statements are true about exception handling?
A. Only unchecked exceptions can be rethrown.
B. All subclasses of the RuntimeException class are recoverable
C. The parameter in a catch block is of Throwable type.
D. All subclasses of the RuntimeException class must be caught or declared to be thrown.
E. All subclasses of the Exception class except the RuntimeException class are checked exceptions.
F. All subclasses of the Error class are checked exceptions and are recoverable.
B C E are correct.
C,E,F
Answer B, C, and E.
I guess you missed an important point 🙂 . The question is about “subclasses of Exception class”. Error class is not a sub class of Exception, it is a subclass of Throwable.
Option. E. is not correct
Error classes are unchecked Exception and Errors connot be recoverable
I guess you missed an important point 🙂 . The question is about “subclasses of Exception class”. Error class is not a sub class of Exception, it is a subclass of Throwable.
B, C, E are correct
https://www.google.com/url?sa=i&source=imgres&cd=&cad=rja&uact=8&ved=2ahUKEwivmIG6-5XgAhUJr1QKHV4sAoAQjRx6BAgBEAU&url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F912334%2Fdifferences-between-exception-and-error&psig=AOvVaw0i9S4gbG-6_zwu3ke7crY7&ust=1548953465175166
Check the link everything is explained