Q. What will happen if an exception is not handled in a Java program?

A
The program will continue running
B
The program will terminate abruptly
C
The exception will be ignored
D
The program will enter an infinite loop
Solution:

Uncaught exceptions cause the program to terminate and display an error message.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!