The bitwise XOR operator is a binary operator that produces a 1 bit if exactly one of its operands is 1. Otherwise, it produces a 0 bit. It is denoted by the symbol ^. It can be applied to the integer type operands, i.e., byte, short, char, int, and long. The table given below shows the outcome of the XOR operation when applied to the operands opr1 and opr2:
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
- Download free practice test for master-ciw-enterprise-developer Master CIW Enterprise Developer exam.
- Download free practice test for scbcd SCBCD exam.
- Download practice question and study guide for scdjws for exam.
- Pass SUN scjp - SCJP
- Get certified in first attempt download scjp-5-0 - SCJP 5/6 simulation.
- Download practice question and study guide for scmad for exam.
- Become SUN SCWCD certified.
- Get certified in first attempt download 310-035 - SCJP 2 simulation.
- Best exam simulation SUN CX310-036 download free trial.
- Download free practice test for SUN Java 5.0 exam.