passing by reference in Java doubts
<p>So I was reading <a href="http://stackoverflow.com/questions/40480/is-java-pass-by-reference">this post</a> and response no. 2. In that example, after calling that method, does the Dog value at address 42, name's changes to Max?</p>

<pre><code>Dog myDog;

Dog myDog = new Dog("Rover");
foo(myDog);

public void foo(Dog someDog) {
    someDog.setName("Max");     // AAA
    someDog = new Dog("Fifi");  // BBB
    someDog.setName("Rowlf");   // CCC
}
</code></pre>
