Courseiva
Handling ExceptionseasyMultiple ChoiceObjective-mapped

1Z0-829 Handling Exceptions Practice Question

Which of the following is a checked exception in Java?

⚠ Common exam trap

Candidates often confuse all exception subclasses of Exception as checked, forgetting that RuntimeException and its subclasses are unchecked, and thus incorrectly select unchecked exceptions like NullPointerException or IllegalArgumentException.

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

SQLException

SQLException is a checked exception because it extends Exception directly (not RuntimeException). Checked exceptions must be either caught with a try-catch block or declared in the method signature using 'throws'. SQLException is thrown by JDBC API methods when database access errors occur, forcing the developer to handle potential SQL failures at compile time.

Answer analysis

Option-by-option breakdown

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

  • NullPointerException

    Why it's wrong here

    Unchecked.

  • ArrayIndexOutOfBoundsException

    Why it's wrong here

    Unchecked.

  • SQLException

    Why this is correct

    Checked exception.

  • IllegalArgumentException

    Why it's wrong here

    Unchecked.

About these practice questions

One of 513 original 1Z0-829 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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-829 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-829 exam.