Excellent tips. But I would like to say that JDK7 has come up with awesome Objects class which can easily generate hashcodes for classes.
How hashcode behaves in String
Oct 3, 2011, 10:31:13 AM
Posted to How to override hashcode in Java example - Tutorial