Annotations
6 Topics
1
Annotations Basics
Understand the purpose, syntax, and basic usage of annotations in Java.
Tests fundamental knowledge: how compiler handles annotations, and the differences between source, class, and runtime retention.
2
Built-in Annotations
Learn Java standard built-in annotations like @Override, @Deprecated, @SuppressWarnings, and @SafeVarargs.
Commonly tested on built-in compiler annotations, safe varargs rules, and suppressing specific warnings.
3
Custom Annotations
Learn to declare custom annotations, define parameters, and set default values.
Commonly tested on annotation declaration syntax, permitted parameter types, and default values.
4
Meta Annotations
Learn standard meta-annotations: @Retention, @Target, @Documented, @Inherited, and @Repeatable.
Focuses on @Inherited behavior across class hierarchies and implementing @Repeatable container structures.
5
Annotation Processing
Understand compile-time annotation processing and code generation (APT).
Tests compile-time vs runtime processing concepts, compiler hooks, and the round-based processing structure.
6
Common Framework Annotations
Learn common enterprise annotations used in Spring, JPA, Jackson, and Lombok.
Tests practical application: mapping database mappings (@Entity, @Id) and dependency injection tags.