Articles in this series
This is the collection which I am writing based on the book Effective Java by Joshua Bloch . The book contains a lot of recommended practices (90 to...
Part of a Series Item 1: Consider static factory methods instead of constructors Advantages: Have names (multiple constructors with variable...
Object is a concrete class, designed primarily for extension. This article would tell you when and how to override the methods. Item 10: Obey the...
Item 15: Minimize the accessibility of classes and members A well-designed component hides the API and the implementation. It communicates only via...
Generics has been present since Java 5. They help in maintaining static typing by inserting casts and give error at compile time if inconsistent. They...
Two special-purpose families of reference types: Enums and Annotations. Item 34: Use enums instead of int constants int constants public static final...