An automatic memory management process that identifies and frees memory that is no longer being used by a program. Garbage collection prevents memory leaks by reclaiming memory from objects that are no longer reachable.
The term 'garbage collection' was coined by John McCarthy in 1959 for the Lisp programming language, using the metaphor of collecting and disposing of unwanted items (garbage) to describe reclaiming unused memory.
Try Another Word