Computer Science, asked by avneet5503, 10 months ago

Which class does not override equals and hashcode?

Answers

Answered by Anonymous
0

Answer:

Basically Strings are Immutable means Whenever we try to change the value of string result will be new string.

Answered by N3KKI
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