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.

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions