2013年12月8日

override equals in Java

摘要: equals()(javadoc) must define an equality relation (it must bereflexive,symmetric, andtransitive). In addition, it must beconsistent(if the objects are not modified, then it must keep returning the same value). Furthermore,o.equals(null)must always return false.hashCode()(javadoc) must also beconsis 阅读全文

posted @ 2013-12-08 03:07 Step-BY-Step 阅读(968) 评论(0) 推荐(0) 编辑

Yahoo 面经

该文被密码保护。 阅读全文

posted @ 2013-12-08 02:43 Step-BY-Step 阅读(4) 评论(0) 推荐(0) 编辑

导航