Skip to content
Sharp

JVM Architecture · interview question

When a Java class is loaded by the JVM, where is its bytecode initially stored?

Multiple choiceEasychapter-14-curatedpremiumjvm-architectureclass-loading
Choose one answer
Answer and explanation

Correct answer

B. Metaspace

Why

The JVM stores class metadata, including bytecode, in the Metaspace. Unlike the heap, which stores objects, the Metaspace is specifically used for class loading and related metadata.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →