Contents    Page-10    Prev    Next    Page+10    Index   

Garbage Collection

Garbage collection is a method of automatically recycling storage that is no longer in use:

Garbage collection requires that the type of every piece of runtime memory be identifiable by the garbage collector, and that there are no possible errors in type determination. This may difficult for some languages, especially if the language allows variant records or pointer arithmetic. Garbage collection has been used in Lisp since about 1960; it is also used in Java.