why are you nullifying ?? isn't it supposed to be garbage collected after the method execution is over ? in practice you don't nullify objects...
@UkkosTukki2 жыл бұрын
the function is static, I believe this is the reason
@NaturalPro1005 жыл бұрын
Nicely explained
@AhsanAli-vz6mg4 жыл бұрын
Superb
@SurajYadav-yd2cu2 жыл бұрын
in case of weak reference there is no need to make the emp = null , the whole concept of weak reference is that only ... if an object is made with a weak refernce than it will be a part of next GC cycle ..................... Suggestions are open ... plzz coreect me if i am wrong 🙂
@sandeepsangwan25342 жыл бұрын
It should be null. I tried it.
@SurajYadav-yd2cu2 жыл бұрын
@@sandeepsangwan2534 right I was bit confused at that time 😉