Effective Java 3/E

Key summaries and notes for Effective Java

Effective Java - Item 1. Consider Static Factory Methods Instead of Constructors

By providing static factory methods and using them instead of constructors, code related to instance creation can be made easier to understand.

Effective Java - Item 2. Consider a Builder When a Constructor Has Many Parameters

If a constructor has many parameters, using the builder pattern is more convenient.

Effective Java - Item 3. Enforce the Singleton Property with a private Constructor or an Enum Type

Enforce singleton characteristics with a private constructor or an enum type.