In this section, you will learn about the equality operators in Java.
Operator | Description |
---|---|
== | Equality |
!= | Inequality |
Returns true
if the operand on the left is the same as the operand on the
right.
Returns true
if the operand on the left is not the same as the operand on the
right.