Home Help Java O Java 'or' operator



Java 'or' operator
Posted on: June 16, 2009 at 12:00 AM
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

 

 

Related Tags for Java 'or' operator:
cormformvariablesiovariablesedconditionalbooleanoperatorsexpressionoperatorvaluestatereturnusingoleriaoperaoobooconditionforexpressionstoexpressbaseboolssibetweeneitlsvarpeinrmoperationsasstamtrtweenleanoperationbasedestruefalseasemetorsurneeessetwatratiopresspreeaarstatxpvatwssrithcondstabablatialueitherprndonolo


More Tutorials from this section

Ask Questions?    Discuss: Java 'or' 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.