Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java X Java XOR operator

Related Tutorials


 
 

Share on Google+Share on Google+

Java XOR operator

Advertisement
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

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 18, 2009

Related Tutorials

Discuss: Java XOR operator  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com