• hashcode和equals的区别什么

    hashcode和equals的区别是:1、若两个对象equals返回true,则hashCode有必要也返回相同的int数;2、若两个对象hashCode返回相同int数,则equals不一定返回true。hashcode:对象的初始地址

    2022-4-21
    41 0 0