我认为hashcode代表一个类的某些特征,原生的hashcode根据类的地址算出来的,重写了equals就要重写hashcode来满足实际的业务需求。(相同的类hashcode相等)
点赞 评论
牛客网
牛客企业服务