InterviewSolution
| 1. |
What Happens When An Uncaught Exception Occurs In The Run() Method? |
|
Answer» When an unchecked exception has occurred in the run() method, the thread is STOPPED by the JAVA Virtual Machine. It is possible to CATCH this exception by REGISTERING an instance that implements the interface UncaughtExceptionHandler as an exception handler. When an unchecked exception has occurred in the run() method, the thread is stopped by the Java Virtual Machine. It is possible to catch this exception by registering an instance that implements the interface UncaughtExceptionHandler as an exception handler. |
|