Choose the correct statement.
Correct Answer : B
A: To compare two values relational operators must be used. To check whether a is greater than or equal to b the operator
>= must be used. It cannot be replaced by
=> since it causes syntax error and always "
>" or "
<" must be before "
=" but not viceversa.
= operator assigns the value on RHS to variable in LHS whereas
== compares whether LHS and RHS are equal or not.
a == b is same as
b == a because a equal to b is same as b equal to a.
a > b is same as
b < a
Topic: Relational Operators In Java