What does equals() does in String class?

Solution

equals() method compares the content/data of two String object whereas “==” checks whether reference of two objects are same or not.

Share this thread

Comments

Comments
comments powered by Disqus

Navigation

Social Media