1.

Which among the following handles the undefined class in program?(a) ClassNotFound(b) NoClassException(c) ClassFoundException(d) ClassNotFoundExceptionI had been asked this question in an interview for internship.The above asked question is from Catching Class Types in division Exception Handling & Static Class Members of Object Oriented Programming

Answer»

The correct option is (d) ClassNotFoundException

The best I can explain: It is the exception handler that handles the EXCEPTIONS when the class used is not found in the program. This is DONE to HANDLE all the undefined class exceptions. This can be due to a command LINE error.



Discussion

No Comment Found

Related InterviewSolutions