Skip to content
Sharp

JVM Architecture · interview question

How does JVM's Metaspace handle memory allocation differently from PermGen?

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

Correct answer

B. It uses native memory instead of the heap.

Why

Metaspace allocates memory from native memory, which means it can grow as needed up to the limits of the host system, unlike PermGen which was limited by a fixed maximum size in the heap.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →