TSM - 5 Java practices that I use

Tavi Bolog - Development Lead at Nokia

This article presents 5 Java practices that I use while coding. It’s interesting that simple things make your developer (and fellow colleagues) life easier. I have no intent to create some sort of top here, but just to illustrate things I consider helpful. Implement equals, hashCode and toString methods inherited from java.lang.Object. All 3 methods are part of java.lang.Object since JDK 1.0. They could be really useful when used in your classes as follows: Object#equals(Object obj): determines if the current object is equal with the object supplied as parameter.