here i am confused about the statments like
i2.n=i3;
i3.n=i4;
i4.n=i2;
here i2.n means that n is a variable of i2 instance ...... So is i2.n and i2 are both same or what?
i2 is a reference variable. It points to an object -- and that object has in instance (or static, can't tell here) variable called n.
So... when you do this...
i2.n=i3;
You are deferencing the object referenced by i2 and setting the n instance variable to point to the same object that i3 is pointing to.
Henry