Skip to content
Sharp

JVM Architecture · interview question

What impact does excessive use of reflection and dynamic proxies have on Metaspace?

Multiple choiceMediumchapter-14-curatedpremiumjvm-architecturemetaspace
Choose one answer
Answer and explanation

Correct answer

A. Increases Metaspace usage due to additional class generation

Why

Using reflection and dynamic proxies often results in the generation of new classes, leading to increased Metaspace usage as these new class definitions need to be stored.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →