setUncaughtExceptionHandler() Thread method in java
Let’s learn thread setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) method in java. Thread setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) method in java setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) method set the handler invoked when this thread abruptly terminates due to an uncaught exception. Syntax public void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh) Parameters ueh the object to use as this thread’s uncaught exception handler. If null then this thread has no…
Read More setUncaughtExceptionHandler() Thread method in java