Multiple choice technology programming languages

All exceptions inherit from

  1. java.lang.Exception

  2. java.lang.Error

  3. java.lang.Throwable

  4. none of the above

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

In Java, the Throwable class is the common root superclass of all exceptions and errors in the language. Only objects that are instances of Throwable or its subclasses can be thrown by the JVM or the throw statement. Exception and Error both inherit directly from Throwable.