摘要:
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
阅读(246)
评论(0)
推荐(0)
摘要:
You must override hashCode in every class that overrides equals. 阅读全文
posted @ 2017-05-31 18:20
FrankYou
阅读(165)
评论(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
阅读(200)
评论(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
阅读(299)
评论(0)
推荐(0)
摘要:
Eliminate obsolete object references 阅读全文
posted @ 2017-05-31 09:29
FrankYou
阅读(194)
评论(0)
推荐(0)

浙公网安备 33010602011771号