1.

What is an exception?(a) Problem arising during compile time(b) Problem arising during runtime(c) Problem in syntax(d) Problem in IDEThis question was addressed to me during an interview.I need to ask this question from Exception Handling in chapter Exception Handling & Static Class Members of Object Oriented Programming

Answer»

Right answer is (b) PROBLEM arising during runtime

Explanation: The problems that might occur during execution of a program are known as exceptions. The exceptions are unexpected sometimes and can be PREDICTED. Also, the exceptions should be ALWAYS CONSIDERED for a better program.



Discussion

No Comment Found

Related InterviewSolutions