Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What will be the step of the interpreter in a jump statement when an exception is thrown?

  2. A.

     The interpreter stops its work

    B.

     The interpreter throws another exception

    C.

     The interpreter jumps to the nearest enclosing exception handler

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    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.


Be The First To Comment