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's exception hierarchy, all exceptions and errors inherit from java.lang.Throwable, which is the root class. Exception and Error are direct subclasses of Throwable. Exception is for recoverable conditions, Error for serious system errors. Throwable itself is rarely used directly in application code.