I thought the answer should be false since the memory will not be released when the GC runs if the object is still referenced by other live object.
Correct me if i am wrong.
Guoqiao
Originally posted by Kaushik Badiyani:
Hi Guys
Is the following statement regarding Garbage Collections true?
When Garbage Collection runs it releases the memory allocated by an object ?
My answer to it is False
because when the finalize method if present is executed which in turn my reconstruct an object.
Plz guide me on this question
Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum