为什么重写equals要重写hashcode?

为什么重写equals要重写hashcode?

Object类中hashCode();

Object类中equals();

String类中hashCode();

String类中equals();

猜你喜欢

转载自blog.csdn.net/FMC_WBL/article/details/89314499