Mastering Java: The Ultimate 2025 All-In-One Quiz to Excel in 'Thinking in Java

Question: 1 / 510

Which statement about unchecked exceptions is true?

They're a direct subclass of Exception

They must be caught or declared to be thrown

They are checked at compile time

They inherit from RuntimeException

RuntimeException is a subclass of Exception that inherits from RuntimeException, and unchecked exceptions are all subclasses of RuntimeException. This means that unlike checked exceptions, which must be caught or declared to be thrown, unchecked exceptions are not required to be handled by code, making option D the most accurate choice. All the other options are incorrect as they either make general statements about checked/unchecked exceptions that do not apply specifically to unchecked exceptions, or they are incorrect statements about the classification of exceptions.

Get further explanation with Examzify DeepDiveBeta
Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy