Drag a concept onto its matching description — or click a concept then click the description.
SOURCE
RUNTIME
SOURCE
RUNTIME
RUNTIME
Match each annotation to its retention policy.
Drag a concept onto its matching description — or click a concept then click the description.
SOURCE
RUNTIME
SOURCE
RUNTIME
RUNTIME
Answer choices
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
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.
Go deeper
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 →
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.