Javatpoint Logo
Javatpoint Logo

Java Thread getDefaultUncaughtExceptionHandler() method

The 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.

Syntax

Return

This method returns the default handler.

Example

Output:

null
Currently running thread is: Thread-0
Currently running thread is: Thread-1






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA