싱글톤 구현 방법 정리synchronized 방식 (기본 동기화)코드:public class Settings { private static Settings instance; private Settings() { } public static synchronized Settings getInstance() { if (instance == null) { instance = new Settings(); } return instance; }}특징:Lazy Loading: 필요할 때 생성.Thread-safe: synchronized로 스레드 세이프 보장.단점: 매 호출마다 락 걸림 → 성능 저하 가능.Eager Initializatio..