클래스의 인스턴스를 얻는 수단 public 생성자 말고도, 일명 정적 팩토리 메서드를 제공할 수 있다. API 서버를 개발할 때 자주 사용하는 mapper 메서드가 생각났다. (toEntity, toDto 등등)아래는 boolean 기본 타입의 boxed class인
Java의 모든 클래스의 상위 클래스인 ObjectObject에서 final이 아닌 메서드는 모두 재정의할 수 있다. 이때 Object 메서드를 언제, 어떻게 재정의해야 하는지를 한 번 알아보자.각 인스턴스가 본질적으로 고유할 때 값을 표현하는 게 아니라, 동작하는