funtion of == in java
Answers
Answered by
2
The == is a relational operator in Java that is used to compare two operands. It is used to determine whether the two operands are equal or not. Using the == operator, you can compare any primitive type such as int, char, float and Booleans.
Hope you understand
Thanks
Hope you understand
Thanks
Answered by
4
Hey there !!!
As we know that !! java is high level languages so it has many operator like ' % , << ,>> =, ==, etc..
=> == this operation comes in relational operator which compare two variables, two exoressions , two strings etc.
like for example:
if( a==9)
{
.........
.......
}
it means that the variable a compares with value 9 ...if its value is 9 then body of if will be executed..
______________________________
Hope it will help you
As we know that !! java is high level languages so it has many operator like ' % , << ,>> =, ==, etc..
=> == this operation comes in relational operator which compare two variables, two exoressions , two strings etc.
like for example:
if( a==9)
{
.........
.......
}
it means that the variable a compares with value 9 ...if its value is 9 then body of if will be executed..
______________________________
Hope it will help you
Similar questions