What's the difference between == and equals method?
The equals method can be considered to perform a deep comparison of the value of an object, whereas the == operator performs a shallow comparison. The quals() method compares the characters inside a string object. == operator compares two object references to check whether they refer to the same instances or not.
-
Interview Candidate
- Aug 28th, 2004
- 0
- 1775
This Question is not yet answered!
What's the difference between == and equals method?
This Question is not yet answered!