This is the same as ^ in most languages, just an XOR.
false ^ false == false
true ^ false == true
false ^ true == true
true ^ true == false
More Related Contents:
- What will be the working of this statement in program of java? [closed]
- Java: How to write a condition for operators? [closed]
- Why don’t Java’s +=, -=, *=, /= compound assignment operators require casting?
- What is x after “x = x++”?
- Is there a difference between x++ and ++x in java?
- What does the ^ operator do in Java?
- Difference between >>> and >>
- What is the difference between & and && in Java?
- Use of “instanceof” in Java [duplicate]
- What is a Question Mark “?” and Colon “:” Operator Used for? [duplicate]
- What does “|=” mean? (pipe equal operator)
- Is it possible to pass arithmetic operators to a method in java?
- Why does this go into an infinite loop?
- Creating a “logical exclusive or” operator in Java
- Pipe (|) operator in Java
- Difference between & and && in Java? [duplicate]
- Java operator precedence guidelines
- Java: What does ~ mean
- XOR operation with two strings in java
- what is the difference between == operator and equals()? (with hashcode() ???)
- What does >> do in Java?
- What does the colon (:) operator do?
- The difference between += and =+
- Java Operators : |= bitwise OR and assign example [duplicate]
- What is the difference between += and =+?
- Why don’t Java’s +=, -=, *=, /= compound assignment operators require casting long to int?
- Comparing float and double primitives in Java
- Java Increment / Decrement Operators – How they behave, what’s the functionality?
- Does an Array’s specified capacity include 0?
- Get line number from xml node – java