1.

An exception may arise when _______________(a) Input is fixed(b) Input is some constant value of program(c) Input given is invalid(d) Input is validI got this question in semester exam.My query is from Exception Handling topic in division Exception Handling & Static Class Members of Object Oriented Programming

Answer» RIGHT answer is (C) Input given is INVALID

Explanation: The exceptions may arise because the input given by the user might not be of the same type that a program can manage. If the input is invalid the program gets TERMINATED.


Discussion

No Comment Found

Related InterviewSolutions