面试题--HashMap详解

先上hashCode和equals源码:css /** JNI,调用底层其它语言实现 */ public native int hashCode(); /** 默认同==,直接比较对象 */ public boolean equals(Object obj) { return (this == obj); } equals方法:String类中重写了equals方法,
相关文章
相关标签/搜索