1.

Which of these class is related to all the exceptions that cannot be caught?(a) Error(b) Exception(c) RuntimeExecption(d) All of the mentionedI got this question in exam.This interesting question is from Exceptions Types topic in chapter Exception Handling of Java

Answer»

The CORRECT option is (a) Error

Easiest explanation: Error class is RELATED to java run time error that can’t be CAUGHT USUALLY, RuntimeExecption is subclass of Exception class which contains all the exceptions that can be caught.



Discussion

No Comment Found

Related InterviewSolutions