Which class does not override equals and hashcode?
Answers
Answered by
0
Answer:
Basically Strings are Immutable means Whenever we try to change the value of string result will be new string.
Answered by
2
But Why? Why StringBuffer and StringBuilder classes not overriding equals() method and hashcode() method where as String class is overriding these two methods. Basically Strings are Immutable means Whenever we try to change the value of string result will be new string
Similar questions