Courseiva

1Z0-829 Practice Question: Handling Date, Time, Text, Numeric and Boolean Values

Match each annotation to its retention policy.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

SOURCE

RUNTIME

SOURCE

RUNTIME

RUNTIME

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

@Override: SOURCE

Retention policies determine how long annotations are retained: SOURCE (discarded by compiler), CLASS (retained in class file but not at runtime), RUNTIME (retained at runtime via reflection). @Override and @SuppressWarnings are SOURCE because they are only used by the compiler. @Deprecated and @FunctionalInterface are RUNTIME because they are accessed via reflection.

Answer analysis

Option-by-option breakdown

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

  • @Override: SOURCE

    Why this is correct

    @Override is retained in source code only; the compiler uses it to check overriding but discards it after compilation.

  • @Override: RUNTIME

    Why it's wrong here

    Incorrect — @Override has retention policy SOURCE, not RUNTIME, as it is not needed at runtime.

  • @Deprecated: RUNTIME

    Why this is correct

    @Deprecated is retained at runtime so that tools and reflection can determine if an element is deprecated.

  • @Deprecated: SOURCE

    Why it's wrong here

    Incorrect — @Deprecated has retention policy RUNTIME, not SOURCE, because deprecation information is needed at runtime.

  • @FunctionalInterface: RUNTIME

    Why this is correct

    @FunctionalInterface is retained at runtime to allow the compiler and reflection to check functional interface contracts.

  • @SuppressWarnings: SOURCE

    Why this is correct

    @SuppressWarnings is retained in source code only, as it only affects compiler warnings and is discarded after compilation.

About these practice questions

This 1Z0-829 question is part of Courseiva's 513-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-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.