Lets assume that main() has called fun1(), which calls fun2(), which calls fun3(). And assume that fun3() has thrown some exception object to java run time system, now what will happen if none of the functions are handling that exception? (Assuming that it is a unchecked exception).
it crashes the program at run time. terminates abruptly.
Nothing will happen, as we don't need to handle unchecked exceptions.
it gives compile time error
Programmer don't need to handle unchecked exception by putting try-catch block, but programmer has to solve that problem may by debugging the program. Else it will crash the program. For JRE it doesn't matter whether it is checked or unchecked exception.
Back To Top