If an error / exeption is thrown in a thread (not a main one) can this halt the whole application ?
Is there such possibility ? Or will this just stop the thread it was running in ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It will if it causes the only non-daemon thread to return from
run()If there are other non-daemon threads running or the exception or error is caught and handled, the application will keep running.
if the exception or error is caught and handled it might not stop any threads.