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:
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Java 'or' operator
Post your Comment