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
This question is part of this quiz :
Java Memory Allocation