exclusive-or operator
Java
The exclusive-or operator (^) is both a boolean operator and a bit manipulation operator. The boolean version gives the value true if only one of its operands is true, otherwise it gives the value false. Similarly, the bit manipulation version produces a 1 bit wherever the corresponding bits in its operands are different.