From: Xavier Noria Date: 2007-10-05T18:37:14+09:00 Subject: Re: Reference vs. Reference On Oct 5, 2007, at 10:56 AM, Robert Dober wrote: > Yup, maybe I missunderstood here, I was not talking about > java.lang.Integer but > about int. Probably my error. What I wanted to clarify was that in > Java is int,bool etc which are not objects even on the language level. Yep, but that's not relevant to the kind of method call done by Java. The point is: no matter whether you have a primitive int or an object reference, in Java they are passed by value. The JLS says[*]: When the method or constructor is invoked (§15.12), the values of the actual argument expressions initialize newly created parameter variables, each of the declared Type, before execution of the body of the method or constructor. -- fxn [*] http://java.sun.com/docs/books/jls/third_edition/html/ classes.html#8.4.1