I am Vaishali here.
I see that object referred by a1 is eligible for GC. But it has b1(static) and b2.
So, here when we say only 1 object is eligible for GC, is it like a1.b2 is for gced?
My doubt is if a1 is gced , why not b2(beta object it has as Instance) as well?
Excuse me if I am mistaken for some facts which I still need to know.