변수의 타입(data type)이다.
자료형
: 'data의 type에 따라 값이 저장될 공간의 크기와 저장 형식을 정의한 것
자료형은 기본형(primitive type)과 참조형(referece type)으로 나뉘는데,
int 는 이 중 기본형에 속함
기본형
1. 정수 타입 : byte, char, short, int, long
2. 실수 타입 : float, double
3. 논리 타입 : boolean
참조형
1. 배열 타입
2. 열거 타입
3. 클래스
4. 인터페이스
Integer는 int의 레퍼클레스 이다
래퍼클래스(wrapper class)
: 기본형을 객체로 다루기 위해 사용하는 클래스들
boxing
: primitive type -> wrapper class 변환 ( int to Integer )
unboxing
: wrapper class -> primitive type 변환 ( Integer to int )