Garbage collector question

V

Vincent Cantin

... There is no way in Java to force the VM to do a full garbage
collection and
check that, although System.gc suggests that it try.

Thank you.
Vincent
 
X

xarax

Vincent Cantin said:
No .. this means weakly reachable, and *perhaps* no longer simply reachable.

Placing the reference into "yourObject" makes
it strongly reachable. So, the println message
is correct at the time it is executed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top