Here they are when swap is invoked: Just before exiting the swap method: After exiting, xObject and yObject have retained their original values: