[ Java ] What is the Wrapper Class?


[ Java ] What is the Wrapper Class?

래퍼 클래스 출처 : https://tcpschool.com/java/java_api_wrapper 래퍼 클래스(Wrapper Class)는 프로그램에 따라 기본 타입의 Data를 Object로 취급해야 하는 경우 사용한다. 만약 메서드 인자 값으로 요구되는 타입이 Object일 때, 기본 타입의 Data를 그대로 사용할 수 없기 때문에 Data 타입을 Object로 변환하여 작업을 진행해야 한다. 기본 타입 래퍼 클래스 byte Byte short Short int Integer long Long float Float double Double char Character boolean Boolean 즉, Wrapper Class는 위 표와 같은 8개의 기본 타입에 해당하는 Data를 Object로 포장해..


원문링크 : [ Java ] What is the Wrapper Class?