Vincent Cantin wrote:
> because I need to know in some points of given class of programs that an
> object is reachable or not.
If you want to know whether the WeakReference is still valid, just use
get() and compare the result with null. You are not guaranteed that a
call to System.gc will clear the WeakReference, so you need to check
yourself if you wish to find out.
--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation