Multiple choice technology programming languages

Which of the following are true about the Error and Exception classes?

  1. Both classes extend Throwable.

  2. The Error class is final and the Exception class is not.

  3. The Exception class is final and the Error is not.

  4. Both classes implement Throwable.

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

Both Error and Exception classes extend Throwable in the Java exception hierarchy. Throwable is the superclass of all errors and exceptions in Java. Neither Error nor Exception is final - both have subclasses. They extend (inherit from) Throwable, not implement it as an interface. Option A is correct.