I have corrected the code
When i execute the prog i see the output as "alok alok". I am not getting how it is printing two times. Can you please explain in brief please
Also you told that one object is eligible for gc . which is that object?
According to me it should be disp. But disp is eligible i am not able to understand.
Correct me if i am wrong.
Ranchers it would be great if you could explain above scenario in simple terms. Please......