Answer the question
In order to leave comments, you need to log in
equals() method. Why is it not overridden for strings?
Hello everyone, please advise. By default, the equals() method looks like this:
public boolean equals(Object obj) {
return (this == obj);
}
Answer the question
In order to leave comments, you need to log in
Because the String class has a different default equals method .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question