I want to know that the XOR operator in java can add or subtract two operand ?
Asked
Active
Viewed 48 times
1 Answers
0
XOR Operator in Java and almost in any languages is ^
.
Example:
(decimal) (binary)
5 = 101
6 = 110
------------------ xor
3 = 011
Reference: https://stackoverflow.com/a/2672217/5119030

Mikheil Zhghenti
- 734
- 8
- 28