What is Garbage Collection in the context of JVM memory management?

Last Updated :
Discuss
Comments

What is Garbage Collection in the context of JVM memory management?

It is the process of allocating memory to JVM Stack


It is used to store objects in the Method Area

It is responsible for managing Stack memory

It is the process of deallocating unused memory and objects in the Heap


Share your thoughts in the comments