Javatpoint Logo
Javatpoint Logo

Java ForkJoinPool getUncaughtExceptionHandler() Method

The getUncaughtExceptionHandler() method of ForkJoinPool class returns the exception handler for internal worker threads that terminate due to an unrecoverable error.

Syntax

Parameter

NA

Returns

This method returns the handler or null if none.

Example 1

Test it Now

Output:

numbers of core available in your processor:2
  Exception Handler : null
Pool.invoke :161

Example 2

Test it Now

Output:

numbers of core available in your processor:4
uncaught exception handler : null
Next TopicJava Forkjoinpool




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials