nerdexam
IBM

C2010-501 · Question #37

Which statement explains how a Java Virtual Machine can have a memory leak despite having garbage collection?

The correct answer is B. Garbage collection only cleans unused objects without references. See the full explanation below for the reasoning.

Question

Which statement explains how a Java Virtual Machine can have a memory leak despite having garbage collection?

Options

  • ACoding errors in Java prevent the garbage collection process.
  • BGarbage collection only cleans unused objects without references.
  • CGarbage collection is not given a chance to run when memory leaks occur in Java.
  • DThe heap can contain large numbers of objects that are marked as non-recyclable which can spawn

How the community answered

(50 responses)
  • A
    6% (3)
  • B
    80% (40)
  • C
    2% (1)
  • D
    12% (6)

Community Discussion

No community discussion yet for this question.

Full C2010-501 Practice