Multiple choice

Which of the following statements is/are not true?

  1. Throwable is the superclass of all exception classes in Java.

  2. Stack overflow is an example of runtime exception.

  3. Checked exceptions occurr due to user error.

  4. Finally clause is used to free the resources allocated by the methods in the beginning of the program.

  5. All of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is a false statement as it is not an exception. It is an error.