The XOR of two operands in java :
xorResult=One^Two , we have two operands and one operator ^(XOR) and the result of XOR of One and Two is stroed in xorResult variable.
How it works: XOR returns true(1) when both One and Two variables are different and if both are same then it returns false(0).
Sample I/O : 0=1^1, 0=0^0,1=1^0,1=0^1