Why do NET strings override == and Java strings don't?

https://news.ycombinator.com/item?id=13780925
by sqldba • 9 years ago
2 1 9 years ago

This is regarding using .equals() in Java so as not to compare object references.

I just wonder why it was done that way. Did Java just not think about it until it was too late to change, or, was there some technical reason?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com