1.

Which of these class is related to all the exceptions that can be caught by using catch?(a) Error(b) Exception(c) RuntimeExecption(d) All of the mentionedI had been asked this question in an interview.Query is from Exceptions Types in section Exception Handling of Java

Answer»

Right ANSWER is (b) EXCEPTION

For 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