1.

Which class is used to handle the input and output exceptions?(a) InputOutput(b) InputOutputExceptions(c) IOExceptions(d) ExceptionsIOThe question was asked in an interview.The doubt is from Exception Handling in portion Exception Handling & Static Class Members of Object Oriented Programming

Answer»

Correct answer is (c) IOExceptions

Explanation: There is a specific class to handle each type of exceptions that might be PRODUCED in a PROGRAM. The INPUT and output exceptions can be handled by an object of class IOExcceptions. This class HANDLES all type of input and output exceptions.



Discussion

No Comment Found

Related InterviewSolutions