1.

Which of the following classes can catch all exceptions which cannot be caught?(a) RuntimeException(b) Error(c) Exception(d) ParentExceptionI got this question in a national level competition.My question is from Exception Handling in portion Exception Handling of Java

Answer»

Correct CHOICE is (b) Error

To ELABORATE: Runtime errors cannot be CAUGHT GENERALLY. Error CLASS is used to catch such errors/exceptions.



Discussion

No Comment Found

Related InterviewSolutions