user image

Gagan Mishra

Job Interview Skills
English
2 years ago

Question 552. What Is Exception Handling?

user image

Abhishek Mishra

2 years ago

When an exception occurs, the system searches for the nearest catch clause that can handle the exception, as determined by the run-time type of the exception. First, the current method is searched for a lexically enclosing try statement, and the associated catch clauses of the try statement are considered in order. If that fails, the method that called the current method is searched for a lexically enclosing try statement that encloses the point of the call to the current method.

Recent Doubts

Close [x]