Object references are passed by reference. Yes, a coopy of the reference is passed to a method, but changes made using thet copy of the reference are reflected in the calling method. In the case of primitives, they are passed by copy. i.e changes made in the called method are not reflected in teh calling method.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
manas It is slightly confusing when you first hear it, but: All variables are passed by value. For primitives the value passed is simply the value that the variable contains. For reference variables (objects and arrays) the value that the variable holds is a reference to the object or array, so it is a reference that is passed. hope that helps