객체 생성과 파괴
- Item 1. Consider static factory methods instead of constructors
- Item 2. Consider a builder when faced with many constructor parameters
- Item 3. Enforce the singleton property with a private constructor or an enum type
- Item 4. Enfore noninstantiability with a private constructor
- Item 5. Prefer dependency injection to hardwiring resources
- Item 6. Avoid creating unnecessary objects
- Item 7. Eliminate obsolete object references
- Item 8. Avoid finalizers and cleaners
- Item 9. Prefer
try-with-resourcestotry-finally