Skip to content
Sharp

JVM Architecture · interview question

How does the JVM decide when to increase the Metaspace size?

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

Correct answer

C. Based on the amount of class loading activity

Why

The JVM monitors class loading activities and increases the Metaspace size dynamically when more class definitions are loaded, which requires more space.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →