Return to site
JAVA CERTIFICATION QUESTION: Determining eligibility for garbage collection in Java
·
Given:
and a fragment of a test case scenario:
After which line’s execution will the object created at line A become eligible for garbage collection? Choose one.
A. Line 1
B. Line 2
C. Line 3
D. Line 4
E. Line 5
F. Line 6
G. Not possible to predict, because it depends on the garbage collector (GC) implementation
·pǝʇǝๅdɯoɔ uǝǝq sɐɥ 9 ǝuᴉๅ ɹǝʇɟɐ uoᴉʇɔǝๅๅoɔ ǝɓɐqɹɐɓ ɹoɟ ǝๅqᴉɓᴉๅǝ ǝq ๅๅᴉʍ Ɐ ǝuᴉๅ ʇɐ pǝʇɐǝɹɔ ǝɔuɐʇsuᴉ ssɐๅꓛɐʌɐſ ǝɥʇ ǝsnɐɔǝq ʻꓞ sᴉ uoᴉʇdo ʇɔǝɹɹoɔ ǝɥꓕ