He’s live… he’s live not… he’s live…
I was making some code changes today and thought this was interesting to share. As you know, the WeakReference class has a getter and a setter method to get and set the Target which is what the weakref points to. See Using GC Efficiently – Part 3 for more details on WeakReference. Note that the code below is only for illustration purposes – ...