Java Thread getDefaultUncaughtExceptionHandler() methodThe getDefaultUncaughtExceptionHandler() method of thread class returns the default handler invoked when a thread abruptly terminates due to an uncaught exception. If the returned value is null, there is no default. SyntaxReturnThis method returns the default handler. ExampleOutput: null Currently running thread is: Thread-0 Currently running thread is: Thread-1 Next Topicmultithreading in java |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India