- Greater than (
>
) and Lesser than (<
) - Equal (
==
) and Not Equals (!=
) - Greater than or Equal (
>=
) and Lesser than or Equal (<=
)
If we're comparing objects are equal to each other/storing the same data. -> .equals()
should be used instead
.equals()
is a string method