Java ForkJoinPool getUncaughtExceptionHandler() MethodThe getUncaughtExceptionHandler() method of ForkJoinPool class returns the exception handler for internal worker threads that terminate due to an unrecoverable error. SyntaxParameterNA ReturnsThis method returns the handler or null if none. Example 1Test it NowOutput: numbers of core available in your processor:2 Exception Handler : null Pool.invoke :161 Example 2Test it NowOutput: numbers of core available in your processor:4 uncaught exception handler : null
Next TopicJava Forkjoinpool
|