Hi folks,
This is a conceptual question.
Assume there are two user threads U1 and U2 that
a program spawns.
Thread U1 throws an exception
which is not handled by the thread/program.
Which of the following is true -
<PRE>
a) U1 terminates and U2 continues to run.
b) U1 and U2 both terminate.
c) (b) and the JVM terminates too.
</PRE>
As I understand, uncaught exceptions
are handled by ThreadGroup.uncaughtException() which
terminates the program. But I am not very clear
how it affects the other threads that may
or may not be in the same thread group.
I really appreciate your inputs.
Ajith