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?
- A.
Exception and VirtualMachineError Class
- B.
Error and Exception Class
- C.
IOException and VirtualMachineError Class
- D.
Runtime Exception and Error Class
- E.
Question not attempted
Attempted by 61 students.
Show answer & explanation
Correct answer: B
Throwable is the superclass for the two main Java throwable hierarchies: Error and Exception.