state the difference between = and ==in java
Answers
Answered by
33
= :- It is used for assigning the value to a variable.
== :- It is used for comparing two values. It returns 1 if both the values are equal otherwise returns 0.
Answered by
0
(=)It is used for assigning the value to a variable.
(==) It is used for comparing two values. It returns 1 if both the values are equal otherwise returns 0.
Similar questions
Social Sciences,
23 days ago
Science,
23 days ago
Environmental Sciences,
23 days ago
Science,
1 month ago
Math,
1 month ago
Science,
8 months ago
History,
8 months ago
Hindi,
8 months ago