Operators and methods that return values representing true or false are called predicates. Java offers several operator predicates that test the relationship between pairs of numbers:
Predicate | Purpose |
== | Are two numbers equal? |
!= | Are two numbers not equal? |
> | Is the first number greater than the second? |
< | Is the first number less than the second? |
>= | Is the first number greater than or equal to the second? |
<= | Is the first number less than or equal to the second? |