top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+1 vote
170 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...