top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can you catch an exception thrown by another thread in Java?

+1 vote
623 views
How can you catch an exception thrown by another thread in Java?
posted Feb 6, 2017 by Samira Sharma

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

If you have the Thread object you can try to set a UncaughtExceptionHandler . Take a look at Thread.setUncaughtExceptionHandler(...)

answer Feb 7, 2017 by Karthick.c
...