Vidyalelo
Java Programming · Q22

Threads

Programming · Java Programming · question 22

Q22

In Java, what happens when a thread encounters an uncaught exception and terminates abruptly?

A.
The thread is paused indefinitely
B.
The JVM prints the exception trace and terminates the thread
Answer
C.
The thread resumes execution without any impact
D.
None of These

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board