Study/Effective Java (1) 썸네일형 리스트형 Effective Java - Chapter2 Summary (1) 2. Creating and Destroying Objects when and how to create objects how to ensure they are destroyed in a timely manner how to manage any cleanup action that must precede their destruction Consider static factory methods instead of constructors public static Boolean valueOf(boolean b){ return b? Boolean.TRUE : Boolean.FALSE; } A static factory method is not the same as the Factory Method Pattern f.. 이전 1 다음