Effective Java第二版变更之 Methods Common to All Objects

第2版 Methods Common to All Objects

Item 8: Obey the general contract when overriding equals
Item 9: Always override hashCode when you override equals
Item 10: Always override toString
Item 11: Override clone judiciously
Item 12: Consider implementing Comparable

没有变化,老样子。

你可能感兴趣的:(归档,effective,java)