Asked by aubry castro on May 12, 2024

verifed

Verified

Which of the following statements is true?

A) The class Exception, which is derived from the class Object, is the superclass of the class Throwable.
B) The class Throwable, which is derived from the class Exception, is the superclass of the class Object.
C) The class Throwable, which is derived from the class Object, is the superclass of the class Exception.
D) None of these

Class Throwable

The superclass of all errors and exceptions in the Java language, from which all exception classes are derived.

Superclass

The parent class from which a subclass inherits properties and methods in object-oriented programming.

Class Exception

A type in programming that is used to handle errors and other exceptional events in Java code.

  • Recognize principal categories within the Java exception hierarchy.
verifed

Verified Answer

MG
Ma Guadalupe Villanueva IslasMay 14, 2024
Final Answer :
C
Explanation :
The class Throwable is derived from the class Object and is the superclass of the class Exception. This means that all exceptions thrown in Java are instances of Throwable, including both the Exception and Error subclasses. Option A and B are incorrect as they switched the superclass and subclass relationships. Option D is incorrect as one of the options must be correct.