Aussiemcgr and Copeg thanks for helping me.
I have also tested the code with finalize and saw that the garbage collection removed only one object.
I have learnt something new.
Thanks a lot
Type: Posts; User: dudushr
Aussiemcgr and Copeg thanks for helping me.
I have also tested the code with finalize and saw that the garbage collection removed only one object.
I have learnt something new.
Thanks a lot
Thanks a lot for the answer
Dear programmers
While navigating in the internet I have seen the following Question:
class C{
public static void main(String a[]){
C c1=new C();
C c2=m1(c1);
C c3=new C();
c2=c3;...