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.
Aaron What will happen is that the variable obj will refer to the newly created object of type SomeObject. The original object that it refered to will become eligible for garbage collection and at some point the GC will destroy it and reclaim the memory that it used. The new object doesn't replace the other one in memory the location of the new one will replace the location of the original one in the varialbe obj. Did that answer it for you?