Definition:
Garbage collection is the process of automatically detecting memory that is no longer in use, and allowing it to be used again. Java employs garbage collection to free memory that has been used by objects, saving programmers having to explicitly dispose of them.

