Which statement describes how garbage collection is used?
A. Garbagecollection frees memory by removing dead objects from the heap.
B. Garbage collection compresses the heap space through data compression.
C. Garbage collection forces the freeing of memory in the heap by dumping the objects in the order of least used to most used.
D. Garbage collection uses a properly tuned garbage collection agent to gather unused data in the heap and purge it from the system.
Answer:A
Which statement describes how garbage collection is used?
A. Garbagecollection frees memory by removing dead objects from the heap. B. Garbage collection compresses the heap space through data compression. C. Garbage collection forces the freeing of memory in the heap by dumping the objects in the order of least used to most used. D. Garbage collection uses a properly tuned garbage collection agent to gather unused data in the heap and purge it from the system.