The equals () method. Why not overridden for strings?

Hi all, please tell me. By default, the equals() method as follows:
public boolean equals(Object obj) {
 return (this == obj);

In order to compare two objects of any class created by us, should the above method to override, as it compares references and not the objects themselves. But why when comparing strings it not override?
June 3rd 19 at 19:32
1 answer
June 3rd 19 at 19:34
Because the String class the equals method the default looks different.
Thanks for the reply. - nikita.Stracke commented on June 3rd 19 at 19:37

Find more questions by tags Java