Lesson

Learn Java in 2018, Boolean Operators - || (OR), Learn Java on Codecademy

Lesson Summary

In this lesson we go over the Java Boolean operator "OR" which is denoted by "||". The "OR" operator checks 2 values and returns true if either of the values are true. It also returns true if both values are true. The only time a Java "OR" returns false is when both values are false.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: