← Tech dictionary
Java & Spring
What is Garbage collection?
Garbage collection automatically frees memory occupied by objects that are no longer reachable from the program, so developers don’t free memory manually. Java, Python and JavaScript use garbage collectors; C and C++ do not by default.
Learn it properlyJava tutorials — free, with diagrams, quizzes and a certificate