Courseiva
Handling ExceptionseasyMultiple ChoiceObjective-mapped

1Z0-829 Handling Exceptions Practice Question

Exhibit

Refer to the exhibit.

public class CustomException extends RuntimeException {
    public CustomException(String message) {
        super(message);
    }
}

Usage:
throw new CustomException("Error");

Given the code in the exhibit, which of the following is true about this custom exception?

⚠ Common exam trap

Oracle often tests the misconception that all custom exceptions must be checked exceptions, but the trap here is that a custom exception extending RuntimeException is unchecked, so it does not require handling or declaration, and it can still be used in multi-catch blocks.

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

It is an unchecked exception.

The custom exception extends RuntimeException, which makes it an unchecked exception. Unchecked exceptions do not require handling or declaration in the method signature, and they can be used in multi-catch blocks.

Answer analysis

Option-by-option breakdown

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

  • It cannot be used with multi-catch because it is unchecked.

    Why it's wrong here

    Unchecked exceptions can be used in multi-catch.

  • It is an unchecked exception.

    Why this is correct

    Extends RuntimeException.

  • It must be caught or declared in the method signature.

    Why it's wrong here

    Unchecked exceptions do not require handling.

  • It must implement the Serializable interface.

    Why it's wrong here

    Not required.

About these practice questions

Courseiva writes every 1Z0-829 question from scratch — 513 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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-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.