PrepAway - Latest Free Exam Questions & Answers

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

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

PrepAway - Latest Free Exam Questions & Answers

A.
Coding errors in Java prevent the garbage collection process.

B.
Garbage collection only cleans unused objects without references.

C.
Garbage collection is not given a chance to run when memory leaks occur in Java.

D.
The heap can contain large numbers of objects that are marked as non-recyclable which can
spawn garbage collection-proof objects.

Explanation:


Leave a Reply