Question about enthuware.ocajp.i.v7.2.884
Posted: Fri Jun 26, 2015 4:54 am
One of the answers is:
.
The explanations in blue, as to why this answer is incorrect, go into details of the garbage collection.
I think that, viewing the question, the blue text should simply be:
"Whatever way the GC runs, it will never alter eligibility for the garbage collection of 'obj'."
Code: Select all
Runtime.getRuntime().gc();
The explanations in blue, as to why this answer is incorrect, go into details of the garbage collection.
I think that, viewing the question, the blue text should simply be:
"Whatever way the GC runs, it will never alter eligibility for the garbage collection of 'obj'."