What Is an Exception?
An exception is an event that occurs during the execution of a program that disrupts the normal flow of instructions.
Exception and Error classes are both subclasses of the _______ class.
What is called when the system creates an exception object and hands it to the runtime system?
Is called throwing an exception
When an error occurs in a method, what does the method create?
An exception object.
What does the “exception object” contains?
It contains information about the error and the state of the program when the error occurred.
What does the runtime system do with the “exception object”?
The runtime system attempts to find something to handle it by
In which case, a program is expected to recover?
A - If an error occurs.
B - If an exception occurs.
C - Both of the above.
D - None of the above.
Answer : B
A program is expected to recover if an exception occurs.
True or False
Is it necessary that each try block must be followed by a finally block?