Skip to content
Sharp

Java Annotations · interview question

When using an Annotation Processor, what phase of compilation does it primarily operate in?

Multiple choiceHardchapter-16-curatedpremiumjava-annotationscustom-annotations
Choose one answer
Answer and explanation

Correct answer

A. During compile-time

Why

Annotation Processors operate during compile-time, processing annotations to generate additional source files or other outputs before bytecode is generated.

Test yourself on Java Annotations

A free test with instant, explained results. No account needed.

Start free test
All Java Annotations questions →