Java – Relational Operators

Java – Relational Operators 2017-08-09T09:40:29+00:00

OPERATOR

MEANING

EXPLANATION

EXAMPLE

RESULT

==

Equal to

This sign is for check equality

10==10

true

!=

Not equal to

This sign is for check Inequality

10!=10

false

Greater than

This sign is for check greater value

10>10

false

Less than

This sign is for check lesser value

10<10

false

>=

Greater than or equal to

This sign is for check greater as well as equality

10>=10

true

<=

Less than or equal to

This sign is for check lesser as well as equality

10<=10

true

EX.

 

Output :

…………..Relational operators……………..
Congratulation ,You got a distinction and you got 70 marks……..

Prev Next