Java Effective - II
90 points to make your coffee

This is a multi-part? series on the book Absolute Java 3rd edition by Joshua Bloc, enumerating in short the 90 points made in the book.

2. Methods common to all objects

All of its nonfinal methods (equals, hashCode, toString, clone, and finalize) have explicit general contracts because they are designed to be overridden. It is the responsibility of any class overriding these methods to obey their general contracts; failure to do so will prevent other classes that depend on the contracts (such as HashMap and HashSet) from functioning properly in conjunction with the class.

10. General contract for overriding equals

11. Override hashcode when overriding equals

12. Always override toString

13. Override clone judiciously (read never)

14. Consider implementing comparable

*****
Written by Martin on 17 May 2019