1.

What will be the step of the interpreter in a jump statement when an exception is thrown?(a) The interpreter stops its work(b) The interpreter throws another exception(c) The interpreter jumps to the nearest enclosing exception handler(d) The interpreter throws an error

Answer» Right option is (c) The interpreter jumps to the nearest enclosing exception handler

Explanation: When an exception is thrown in a jump statement, the interpreter jumps to the nearest enclosing exception handler, which may be in the same function or up the call stack in an invoking function.


Discussion

No Comment Found

Related InterviewSolutions