Java View all facts Glossary Help |
| syntactic unit > symbol > operator > relational operator |
| relational operator comparison table | ||||
| Subject | use by | have purpose | is a subtopic of | return |
|---|---|---|---|---|
| != | to return true if the operands are not equal | Operators | a value called its result | |
| < | to return true if the first operand is less than the second operand | a value called its result | ||
| <= | to return true if the first operand is less than or equal to the second operand | Operators | a value called its result | |
| == | boolean data type | to compare any two variables to test if they are identical, which means they either refer to the same objects or have the same primitive values | Operators | a boolean |
| > | to return true if the first operand is greater than the second operand | Operators | a value called its result | |
| >= | to return true if the first operand is greater than or equal to the second operand | Operators | a value called its result |
Next operator: short circuit operator Up: operator Previous operator: prefix operator