0
What difference between "=" and "=="?
What difference between "=" and "=="?
3 Answers
+ 3
= sets value to another value
== checks if 2 values are equivalent
Int A=3
Int B=5
A=B sets A to have the same value as B
A==B checks if A is equivalent to B
+ 3
= is the assignment operator. It assigns value of one value to other variable.
== operator checks for equivalence between the two variables.
Use =operator to assign values and ==operator to check for equality between two variables.
+ 1
= means that something'll be equivalent some numbers or something else
== means that something'll checked - equivalent or no other thing