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 ?
If an error / exeption is thrown in a thread (not a main one) can this halt the whole application ?
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.
will this just stop the thread it was running in ?
if the exception or error is caught and handled it might not stop any threads.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With