🎴 Flashcard Mode
Java Exception Handling Quiz
Card1 / 20
Mastered0
Review0
QuestionClick to flip
Identify the true statements.
AnswerClick to flip back
A
Checked exceptions must be explicitly caught or propagated(declared Thrown)
B
Checked exceptions in Java extend the java.lang.Exception class
C
Unchecked exceptions extend the java.lang.RuntimeException class
💡 Explanation:
Checked exceptions (like IOException) must be caught or declared in throws clause - this is enforced at compile-time. Unchecked exceptions (RuntimeException and its subclasses) do NOT require explicit handling. Checked exceptions extend Exception (not RuntimeException), while unchecked exceptions extend RuntimeException (which itself extends Exception).