Given that a and b represent numeric expressions, the relational (also called comparison) operators are defined as shown in Table 3.6.
|a < b||a less than b?|
|a <= b||a less than or equal to b?|
|a > b||a greater than b?|
|a >= b||a greater than or equal to b?|
All relational operators are binary operators, and their operands are numeric expressions. Binary numeric promotion is applied to the operands of these operators. The evaluation results in a boolean value. Relational operators have precedence lower than arithmetic operators, but higher than that of the assignment operators.
double hours = 45.5; boolean overtime = hours >= 35.0; // true. boolean order = 'A' < 'a'; // true. Binary numeric ...