18
Uncaught Exceptions
•If there is no exception handler inside the method:
–control of the program is passed to the previous method in the call stack.
–If that method has no exception handler, then control is passed again, up the call stack, to the previous method.
•If control reaches the main method:
–the main method must either handle the exception, or
–the program is halted and the default exception handler handles the exception.