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



Home Help Java O Java 'or' operator

Related Tutorials


 
 

Share on Google+Share on Google+

Java 'or' operator

Advertisement
OR operator is a kind of a conditional operators, which is represented by | symbol.

Java 'or' operator

     

OR operator is a kind of a conditional operators, which is represented by | symbol. It returns either true or false value based on the state of the variables i.e. the operations using conditional operators are performed between the two boolean expressions.

The OR operator (|) is similar to the Conditional-OR operator (||) and returns true, if one or another of its operand is true.

 

Read more at:

http://www.roseindia.net/java/master-java/conditional-operators.shtml

 

 

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: June 16, 2009

Related Tutorials

Discuss: Java 'or' operator  

Post your Comment


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