> I have a program as follows:
> public class Test{
[quoted text clipped - 17 lines]
> why the output is "AB,B" not "AB,AB"?
> thanks
oh, i just got it.
Actually, the b is a copy of the reference. So b = a, will change the
copy, not the actual reference.
Dijon Yu - 18 Oct 2006 13:00 GMT
> oh, i just got it.
> Actually, the b is a copy of the reference. So b = a, will change the
> copy, not the actual reference.
Yes, in memory, b is just a 32bit address, so b=a , it is not change
the object which is point by original reference .
Dijon Yu