Java XOR operator

Java makes available the bitwise operators like AND, OR, XOR, and NOT.

Java XOR operator

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)

http:/www.roseindia.net/java/master-java/java-bitwise-xor.shtml
http:/www.roseindia.net/software-tutorials/detail/19062