Relational operators are binary operators. Java supports six relational operators which are as follows :
These operators are used when some comparisons will arise between two operands. For example, Let the value of a and b is 15 and 20 respectively.
If write a<b, then it is a case of comparison. This relational expression is evaluated as either true or false. So the value this expression is true. Let's see a program to understand these operators.