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 |
- Pass CIW master-ciw-enterprise-developer - Master CIW Enterprise Developer
- Click here to get free scbcd SCBCD exam practice questions.
- Best exam simulation SUN scdjws download free trial.
- Get certified in first attempt download scjp - SCJP simulation.
- Best exam simulation SUN scjp-5-0 download free trial.
- Get certified in first attempt download scmad - SCMAD simulation.
- Download free practice test for SUN SCWCD exam.
- Pass SCJP 2 in first attampt.
- Download free practice test for CX310-036 SCJP 1.4 Upgrade exam.
- Download free practice test for CX310-055 Java 5.0 exam.
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.
