Which of these classes are the direct subclasses of the Throwable class?

2024

Which of these classes are the direct subclasses of the Throwable class?

Answer: B. Error and Exception ClassThrowable is the superclass for the two main Java throwable hierarchies: Error and Exception.

  1. A.

    Exception and VirtualMachineError Class

  2. B.

    Error and Exception Class

  3. C.

    IOException and VirtualMachineError Class

  4. D.

    Runtime Exception and Error Class

  5. E.

    Question not attempted

Attempted by 230 students.

Show answer & explanation

Correct answer: B

Throwable is the superclass for the two main Java throwable hierarchies: Error and Exception.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…