Skip to content

Commit 61e50b2

Browse files
committed
fix grammar mistake
1 parent 874de2d commit 61e50b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessons/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Logical operators are used to perform logical operations. They are used to perfo
7272

7373
- `&&` and `&`: Java unlike many other languages has two AND operators to perform logical AND operation. It returns true if both the operands (being compared) have a truthy value.Even though both the `&` and `&&` operators perform the same AND operation ; the `&&` operator is a logical operator and it can improve the efficiency of your code since it evaluates the second expression only if the first expression is true unlike the bitwise `&` operator which evaluates the second expression nonetheless.
7474

75-
- `||` and `|`: OR used to perform logical OR operation. It returns true if either of the operands have a truthy value. The difference between `|` and `||` is that the `|` operator is a bitwise operator and it compares each operand bitwise whereas the `||` operator is the logical OR operator. It operates on both the operands and returns true if either of the operands have a truthy value.
75+
- `||` and `|`: OR is used to perform logical OR operation. It returns true if either of the operands have a truthy value. The difference between `|` and `||` is that the `|` operator is a bitwise operator and it compares each operand bitwise whereas the `||` operator is the logical OR operator. It operates on both the operands and returns true if either of the operands have a truthy value.
7676
- `!`: NOT used to perform logical NOT operation. It gives true if the operand has false value.
7777

7878
let's see an example:

0 commit comments

Comments
 (0)