摘要:
providing a good toString implementation makes your class much more pleasant to use. It is recommended that all subclasses override this method. When 阅读全文
摘要:
You must override hashCode in every class that overrides equals. 阅读全文
摘要:
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 阅读全文
摘要:
1.Finalizers are unpredictable, often dangerous, and generally unnecessary. 2.never do anything time-critical in a finalizer. 3.never depend on a fina 阅读全文
摘要:
Eliminate obsolete object references 阅读全文