Java/OOP

기본형(Primitive Type) & 참조형(Referecne Type) & null

yunajoe 2022. 10. 20. 23:29

기본형(Primitive Type)

- 변수가 값 자체를 보관

int, boolean, char, double

 

 

참조형(Reference Type)

- 변수는 값이 보관되어 있는 영역을 가리킴

String, int[], String[], 클래스이름(ex Person..)