Boxing [Java] boxing : wrapper class wrapper class 기본형(Primitive type)을 참조형(Reference type)으로 바꾸고 싶을 때 Wrapper class를 활용합니다. 그리고 이러한 행위를 박싱(boxing)이라고 합니다. 반대로 Wrapper class로 바꾼 변수를 다시 기본형으로 바꾸는 것은 언박싱(unboxing)이라고 합니다. 기본형과 래퍼클래스의 매핑은 아래와 같습니다. 연산 서로 대응되는 ... JavaBoxingWrapper ClassBoxing [자바] 삼항 연산자에서 Null Pointer Exception이 발생한다고? 삼항 연산자에서 Null Pointer Exception이 발생하는 경우에 대해 알아봅시다. 다음 삼항 연산자에서는 Null Pointer Exception이 발생합니다. 1) unboxing int, char, byte, short, long, boolean, double, float Interger, Character, Byte, Short, Long, Boolean, Double, Fl... BoxingunboxingBoxing
[Java] boxing : wrapper class wrapper class 기본형(Primitive type)을 참조형(Reference type)으로 바꾸고 싶을 때 Wrapper class를 활용합니다. 그리고 이러한 행위를 박싱(boxing)이라고 합니다. 반대로 Wrapper class로 바꾼 변수를 다시 기본형으로 바꾸는 것은 언박싱(unboxing)이라고 합니다. 기본형과 래퍼클래스의 매핑은 아래와 같습니다. 연산 서로 대응되는 ... JavaBoxingWrapper ClassBoxing [자바] 삼항 연산자에서 Null Pointer Exception이 발생한다고? 삼항 연산자에서 Null Pointer Exception이 발생하는 경우에 대해 알아봅시다. 다음 삼항 연산자에서는 Null Pointer Exception이 발생합니다. 1) unboxing int, char, byte, short, long, boolean, double, float Interger, Character, Byte, Short, Long, Boolean, Double, Fl... BoxingunboxingBoxing