List of Comparison Operators in Java Language
Java has several operators for making comparisons among variables.
Operator | Meaning | Example |
== | Equal | x==3 |
!= | Not Equal | x!=3 |
< | Less than | x<3 |
> | Greater than | x>3 |
<= | Less than or equal to | x <= 3 |
>= | Greater than or equal to | x >= 3 |
Comments
Post a Comment