| Just another two cents. Java does only pass by value. In the case of an object, the end result is the same as if it passed by reference, so in practice it doesn't really matter. The only place this is important is on the certification exam (which I have not gotten around to taking). I did take the official Sun training a couple of years or so ago, and the instructor and the reference material pretty much made this point. (I've also just checked the certification study guide in case my memory was faulty. It's in agreement.) |