nerdexam
IBM

C2010-501 · Question #108

Which statement describes how garbage collection is used?

The correct answer is A. Garbage collection frees memory by removing dead objects from the heap. See the full explanation below for the reasoning.

Question

Which statement describes how garbage collection is used?

Options

  • AGarbage collection frees memory by removing dead objects from the heap.
  • BGarbage collection compresses the heap space through data compression.
  • CGarbage collection forces the freeing of memory in the heap by dumping the objects in the order of
  • DGarbage collection uses a properly tuned garbage collection agent to gather unused data in the heap

How the community answered

(60 responses)
  • A
    75% (45)
  • B
    7% (4)
  • C
    15% (9)
  • D
    3% (2)

Community Discussion

No community discussion yet for this question.

Full C2010-501 Practice