What is the default behavior when an exception occurs and is not caught?

  1. Continue execution
  2. Program hangs
  3. Program terminates
  4. Exception is ignored
Correct answer Program terminates

Explanation

If not caught, the exception causes the JVM to terminate the program.

Update: Admin added a tag on this question

Topics

By Admin · · 30 views