Skip to content
Sharp

Reflection API · interview question

How would you explain a common use case for reflection in Java applications in an interview?

Multiple choiceEasychapter-16-curatedpremiumreflection-apimethod-invoke
Choose one answer
Answer and explanation

Correct answer

B. Framework development

Why

Reflection is commonly used in frameworks to dynamically load classes, inspect methods, and invoke them, enabling flexible and decoupled design.

Test yourself on Reflection API

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

Start free test
All Reflection API questions →