Skip to content
Sharp

Reflection API · interview question

Why does an annotation processor like Lombok in Java matter in this design?

Multiple choiceHardchapter-16-curatedpremiumreflection-apidynamic-class-loading
Choose one answer
Answer and explanation

Correct answer

C. To generate bytecode at compile time based on annotations

Why

Annotation processors like Lombok generate additional bytecode at compile time by processing annotations, which helps reduce boilerplate code and improve code readability.

Test yourself on Reflection API

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

Start free test
All Reflection API questions →