Garbage collection is the process where objects that are no longer needed are deleted.
Garbage collection (GC) is an automated memory management technique used in computer science. Memory that was allotted by the application but is no longer referenced is known as garbage, and the garbage collector tries to recover it. Around 1959, American computer scientist John McCarthy created garbage collection to make manual memory management in Lisp simpler.
Java uses an automatic garbage collection system. It is not necessary for the programmer to explicitly indicate items for deletion. The JVM contains the implementation of garbage collection.
To know more about garbage collection visit:
https://brainly.com/question/15180353
#SPJ4