Skip to content
Sharp

JVM Architecture · interview question

What is stored in the Metaspace of the JVM?

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

Correct answer

D. Class metadata and static variables

Why

Metaspace stores class metadata, including information about methods, fields, and static variables. Unlike the heap, it is not used for object storage. This separation helps manage memory more efficiently, particularly in applications with many classes.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →