B b = new B();
Here b is strong reference, then we set b as null.
b = null;
then GC will reclaim the object which referenced to b when GC happens.
My question is what is the point of using weak reference? as i understand it, the only reason to use weak reference, so we can still get the object even after we set reference as null before GC reclaims it. am i correct?