0
What is difference between = and == ?
Java
5 Answers
+ 12
= assignment operator
== using for check equality for( referance, int value, char, float, double ext...)
+ 2
= is an assignment operator. It is used to tell that a variable has specific value.
== is an logical operator. It is used to relate two things.
Hope it helps
0
// "=" mean that you replace the variable by the other
"==" mean that if his variable have the same value