Examveda
Examveda

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

C. The thread resumes execution without any impact

D. The thread is paused indefinitely

Answer: Option B


This Question Belongs to Java Program >> Threads

Join The Discussion

Related Questions on Threads

What is a thread in Java?

A. A lightweight process that runs independently within a program

B. A data structure to store variables

C. A type of loop

D. A synchronization mechanism