Skip to content
Sharp

Java Annotations · interview question

Which architecture is healthiest for a tiny web framework built with annotations?

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

Correct answer

C. Scan annotations once, build a route registry, then dispatch through stable handler objects

Why

Healthy metaprogramming confines reflection to the infrastructure boundary. The runtime request path should use resolved route data and ordinary objects rather than repeating discovery work.

Test yourself on Java Annotations

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

Start free test
All Java Annotations questions →