In Java 8 or later, which memory area stores class metadata at runtime?

2025

In Java 8 or later, which memory area stores class metadata at runtime?

  1. A.

    Stack

  2. B.

    Heap

  3. C.

    Metaspace

  4. D.

    PermGen

  5. E.

    None of the above

Attempted by 60 students.

Show answer & explanation

Correct answer: C

Correct answer: Metaspace.

From Java 8 onward, class metadata is stored in Metaspace, which replaced the older Permanent Generation area. Metaspace uses native memory rather than the old PermGen space.

Explore the full course: Ibps So It Mains

Loading lesson…