Skip to content
Sharp

JVM Architecture · interview question

How would you explain the key difference between PermGen and Metaspace in an interview?

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

Correct answer

B. Metaspace is not part of the heap and has no fixed size limit by default

Why

Metaspace is native memory, not part of the heap, and expands automatically unless limited by a specific parameter, unlike PermGen, which was part of the heap with fixed limits.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →