Which of the following is true about Garbage Collection (GC) in Java?

Last Updated :
Discuss
Comments

Which of the following is true about Garbage Collection (GC) in Java?


GC is manual, and developers must call it explicitly

GC is used to clean unused classes only

GC automatically frees up memory by removing unreferenced objects

GC occurs only when the system memory is full


Share your thoughts in the comments