1.

The catching of base class exception ___________________________ in java.(a) After derived class is not allowed by compiler(b) Before derived class is not allowed by compiler(c) Before derived class is allowed(d) After derived class can’t be doneI had been asked this question during an internship interview.I'd like to ask this question from Catching Class Types in chapter Exception Handling & Static Class Members of Object Oriented Programming

Answer»

The correct CHOICE is (b) Before derived class is not allowed by compiler

For explanation: The catching of base class exception before derived class is not allowed in java. The compiler itself doesn’t allow this declaration. It PRODUCES an ERROR.



Discussion

No Comment Found

Related InterviewSolutions