IBM Exam Questions

Which statement describes how garbage collection is used?

Which statement describes how garbage collection is used?

A.
Garbage collection 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.

Explanation: