0 votes
in JAVA by
Which of these classes are the direct subclasses of the Throwable class?

i) RuntimeException and Error class

ii) Exception and VirtualMachineError class

iii) Error and Exception class

iv) IOException and VirtualMachineError class

1 Answer

0 votes
by

iii)Error and Exception class

Reason: According to the class hierarchy of Throwable class, the Error and Exception classes are the direct subclasses of the Throwable class, as shown below.

The RuntimeException, IOException, and VirtualMachineError classes are the subclasses of the Exception and Error classes.

...