Trying to correct few things:
fred rosenberger wrote:on line 3, the c1 reference variable now points to the same object as c2.
cb and c2 both point to the object created in line 9
fred rosenberger wrote:on line 4, the c2 reference variable now points to null, but c2 still points to the object.
cb points to null, but c2 still points to the object created in line 9.
fred rosenberger wrote:on line 5, we return the value in c2, which is null...
We return the value in cb, which is null.