摘要: providing a good toString implementation makes your class much more pleasant to use. It is recommended that all subclasses override this method. When 阅读全文
posted @ 2017-05-31 18:22 FrankYou 阅读(240) 评论(0) 推荐(0) 编辑
摘要: You must override hashCode in every class that overrides equals. 阅读全文
posted @ 2017-05-31 18:20 FrankYou 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Overriding the equals method seems simple, but there are many ways to get it wrong, and consequences can be dire. The easiest way to avoid problems is 阅读全文
posted @ 2017-05-31 18:19 FrankYou 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1.Finalizers are unpredictable, often dangerous, and generally unnecessary. 2.never do anything time-critical in a finalizer. 3.never depend on a fina 阅读全文
posted @ 2017-05-31 13:54 FrankYou 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Eliminate obsolete object references 阅读全文
posted @ 2017-05-31 09:29 FrankYou 阅读(184) 评论(0) 推荐(0) 编辑