Java XOR operator
Java makes available the bitwise operators like AND, OR, XOR,
and NOT.
These can be used with either integer or Boolean values.
for instance if we work with XOR operations:
It is represented as:
^ symbol of the XOR operator. |
It requires at least two bit operands to work with
c = a ^ b; this corresponds with 011 XOR 110 = 101 (5) |