This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We start out with one object pointed to by X. Next we pass that one object to a method. We now have one object pointed to by X and N. Next we create a brand new object and have N point to it. Now we have two objects. One pointed to by N and another pointed to by X. When we get back to the result() method, X is still pointing to the original object, not the new object that N was pointing to.