Metaspace stores class metadata in JVM, replacing PermGen.
Metaspace is a memory area in the JVM that stores class metadata. Unlike the removed PermGen, it can grow dynamically and is allocated in native memory. This can prevent OutOfMemoryError for class loading, but could still occur if too many classes are loaded.