Class definitions (including interfaces, etc.) are stored on the heap (usually in the constant generation, because their lifespan is long). If the ClassLoader they ClassLoader is garbage collection, then they also have the right to garbage collection.
source share