Courseiva
Exception Handling and Development ToolseasyMultiple SelectObjective-mapped

1Z0-811 Exception Handling and Development Tools Practice Question

Which THREE of the following are checked exceptions in Java?

⚠ Common exam trap

Candidates often confuse runtime exceptions (like `NullPointerException` and `ArithmeticException`) with checked exceptions, because all are subclasses of `Throwable`, but only those that are not subclasses of `RuntimeException` or `Error` are checked.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

java.sql.SQLException

`java.sql.SQLException` is a checked exception in Java, meaning it must be either caught or declared in the method signature using `throws`. Checked exceptions are subclasses of `Exception` but not of `RuntimeException`, and `SQLException` directly extends `java.lang.Exception`, making it a checked exception that the compiler enforces handling for.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • java.sql.SQLException

    Why this is correct

    SQLException is a checked exception from JDBC operations.

  • java.lang.NullPointerException

    Why it's wrong here

    NullPointerException is a runtime exception (unchecked).

  • java.lang.ClassNotFoundException

    Why this is correct

    ClassNotFoundException occurs when trying to load a class dynamically and is checked.

  • java.lang.ArithmeticException

    Why it's wrong here

    ArithmeticException is a runtime exception (unchecked).

  • java.io.IOException

    Why this is correct

    IOException is a checked exception; must be handled or declared.

About these practice questions

This 1Z0-811 question is part of Courseiva's 481-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 1Z0-811 practice question is part of Courseiva's free Oracle certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 1Z0-811 exam.