Skip to content
Sharp

JVM Architecture · interview question

How does Metaspace handle class unloading?

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

Correct answer

C. By automatically reclaiming memory used by classes no longer in use

Why

Metaspace automatically reclaims memory used by classes that are no longer in use when a Full GC occurs, freeing up space for new classes.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →