All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.lang.ref.Reference | +----java.lang.ref.WeakReference
A weak reference is a reference object that does not prevent its referent from being made finalizable, finalized, and then reclaimed. If the garbage collector determines at a certain point in time that an object is no longer strongly reachable and has no guarded references, then at that time it will clear all weak references to the object and declare the object to be finalizable. If a weak reference is registered at the moment the garbage collector clears it, then at some later time it will be enqueued.
public WeakReference(Object referent)
public WeakReference(Object referent, ReferenceQueue q)
queue
argument
is null
All Packages Class Hierarchy This Package Previous Next Index