Home Help Java X Java XOR operator



Java XOR operator
Posted on: November 18, 2009 at 12:00 AM
Java makes available the bitwise operators like AND, OR, XOR, and NOT.

Java XOR operator

     

Java makes available the bitwise operators like AND, OR, XOR, and NOT. 
These can be used with either integer or Boolean values. 

for instance if we work with XOR operations:

It is represented as: 

^ symbol of  the XOR operator.


 It requires at least two  bit operands to work with

c = a ^ b;  
this corresponds with
011 XOR 110 = 101 (5)

http:/www.roseindia.net/java/master-java/java-bitwise-xor.shtml
http:/www.roseindia.net/software-tutorials/detail/19062

 

Related Tags for Java XOR operator:


More Tutorials from this section

Ask Questions?    Discuss: Java XOR operator  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.