Solveeit Logo

Question

Computer Science Question on Exception Handling

If an error encountered in a method, then what would be one of the correct sequence of the following steps in the exception handling process :
(A) Exception is raised
(B) Create exception object
(C) Searches for method in call stack in reverse sequence
(D) An error encountered in a method
(E) Runtime system searches for exception handler in the current method
Choose the correct answer from the options given below :

A

(A), (B), (C), (E), (D)

B

(D), (B),(A) (E), (C)

C

(A), (C), (B),(D), (E)

D

(C), (A), (B), (E), (D)

Answer

(D), (B),(A) (E), (C)

Explanation

Solution

The correct option is (B) :(D), (B),(A) (E), (C)