April 14, 2024
Which statement is true? (Select 2)
* RuntimeException extends Exception
* RuntimeException extends Throwable
* Exception extends Error
* RuntimeException and its subclasses are unchecked exceptions.
#java #certificationquestion #ocp
Answer:
RuntimeException extends Exception.
RuntimeException and its subclasses are unchecked exceptions.
And:
Exception extends Throwable