What is the difference between '=' '==' ?
Answers
Answered by
1
In general both equals() and “==” operator in Java are used to compare objects to check equality but here are some of the differences between the two: Main difference between.equals() method and == operator is that one is method and other is operator. ... Both s1 and s2 refers todifferent objects.
Answered by
38
✎In general both equals() and “==” operator in Java are used to compare objects to check equality but here are some of the differences between the two: Main difference between.equals() method and == operator is that one is method and other is operator. ... Both s1 and s2 refers todifferent objects.
Similar questions