Computer Science, asked by ks819385, 1 year ago

What is the difference between '=' '==' ?

Answers

Answered by sumanth68
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 Itzraisingstar
38

\huge\underline{\overline{\mid{\bold{\red{Answer ♡}}\mid}}}

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