Computer Science, asked by sehajmaina, 10 months ago

difference between = and == in java​

Answers

Answered by Anonymous
3

Answer:

But the major difference between both of them is their usage. == compares object references, .equals() compares the string values. It means The == operator checks to see if the two strings are exactly the same object and the .equals() method will check if the two strings have the same value.

Similar questions