Monday, April 9, 2018

Equality, Relational & Conditional Operators Part 2 ( Equal to ==)

Hi All,

In this post I'm going to teach you guys how to use equal to operator in Java. Following is the symbol to the equal to operator.

==   equal to 

Let's see how to use this operator,

If you want to check whether X is equal to Y use as follows,

X == Y

Let's try this in Java code.

Program Video





As this equal to operator gives boolean value as the result we can assign the result value to boolean variable.


see you guys in my next post bye !!!

No comments:

Post a Comment