hehe, don't worry, I just took a prelim (midterm) for a CS class and this was our extra credit question:
How do you swap two integer variables X and Y using bitwise operands and no auxiliary variables?
I cannot fucking remember the xor symbol on Java so I wrote in pseudocode:
X = X xor Y; Y = X xor Y; X = X xor Y;
Turns out that you had to write real Java.... T_T FML