what is Logical OR Operator in java | OR Operator | dear computer
#java #javacourse #javatutorial #operator
Logical operators are used to perform logical “AND”, “OR” and “NOT” operations, i.e. the function similar to AND gate and OR gate in digital electronics. They are used to combine two or more conditions /constraints or to complement the evaluation of the original condition under particular consideration. One thing to keep in mind is, while using AND operator, the second condition is not evaluated if the first one is false. Whereas while using OR operator, the second condition is not evaluated if the first one is true, i.e. the AND and OR operators have a short-circuiting effect. Used extensively to test for several conditions for making a decision.
AND Operator ( && ) – if true execute else don’t
OR Operator ( || ) – if one of them is true to execute else don’t
NOT Operator ( ! ) – returns false if a is smaller than b
logical or operator in java,
and or operator in java,
or operator in java,
how to use or operator in java,
logical operators in java