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 java.lang.Throwable class is the root class of the Java Exception hierarchy. Both java.lang.Exception and java.lang.Error inherit directly from java.lang.Throwable. Therefore, all exceptions transitively inherit from Throwable.