Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Ch2 - Creating and Destroying Objects

객체 생성과 파괴

Contents

  • 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-resources to try-finally