What is difference between = and == ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is difference between = and == ?

Java

27th Aug 2019, 3:22 PM
Sarthak Kapse
Sarthak Kapse - avatar
4 Answers
+ 12
= assignment operator == using for check equality for( referance, int value, char, float, double ext...)
27th Aug 2019, 6:44 PM
Sumit Programmer😎😎
Sumit Programmer😎😎 - avatar
31st Aug 2019, 6:30 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 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
31st Aug 2019, 3:47 PM
n_y_1411
n_y_1411 - avatar
0
// "=" mean that you replace the variable by the other "==" mean that if his variable have the same value
27th Aug 2019, 10:27 PM
program
program - avatar