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.
- Pass SCBCD in first attampt.
- Download practice question and study guide for scdjws for exam.
- Click here to download scjp test study guide and practice question.
- Best exam simulation SUN scjp-5-0 download free trial.
- Download free practice test for SUN SCMAD exam.
- Download practice question and study guide for scwcd for exam.
- Get certified in first attempt download 310-035 - SCJP 2 simulation.
- Pass SCJP 1.4 Upgrade in first attampt.
- Best exam simulation SUN CX310-055 download free trial.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.