IT界小嫩草一枚
2016-11-27 22:10
问问各位大神,我用设值注入和构造注入输出的两个string的hashcode是一样的,这没关系的吧?
hashcode相等未必equals,string特殊,不会重写hashcode方法,也不会有人使用hashcode验证,所以木关系。
IT界小嫩草...
非常感谢!
2016-11-29 13:23:26
共 1 条回复 >
请问hashcode方法是干嘛用的?
两个string值是一样的hashcode才会相等。
Spring入门篇
268802 学习 · 1026 问题
相似问题
回答 1
回答 2