📍 primitive type (프리미티브 타입) vs reference type (레퍼런스 타입)연산 속도 :: primitive type > reference type∵ primitive type 이 훨씬 더 가벼움! + 메모리 접근이 단순함! primitive typereference type예시int, long, double, floatInt, Long, Double, Float메모리 할당 방식스택(stack)에 직접 값을 저장.--> 단순히 메모리에 값 자체를 저장함.--> 값에 직접 접근 할 수 있음.힙(heap) 메모리에 객체가 저장되고, 참조 주소값이 스택에 저장.--> 객체 주소를 참조해서 실제 값에 접근함.메모리 오버헤드X--> 값 자체를 저장해서 오버헤드 없음.O--> 힙에 객체를..