Skip to content
Sharp

Reflection API · interview question

Which of the following is a consequence of using reflection to invoke methods in Java?

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

Correct answer

D. Performance overhead

Why

Using reflection involves a performance overhead because it requires additional processing compared to direct method calls, and it bypasses compile-time type checks.

Test yourself on Reflection API

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

Start free test
All Reflection API questions →