java中hashcode()和equals()的详解(转)
摘要:今天下午研究了半天hashcode()和equals()方法,终于有了一点点的明白,写下来与大家分享(zhaoxudong 2008.10.23晚21.36)。 1. 首先equals()和hashcode()这两个方法都是从object类中继承过来的。 equals()方法在object类中定义如...
阅读全文
posted @ 2014-05-23 21:35
posted @ 2014-05-23 21:35
posted @ 2014-05-23 14:27
posted @ 2014-05-17 08:29
posted @ 2014-05-06 11:27