Primitive Data Types (기본 데이터 타입)

boolean
(logical : true 와 false)
char : Unicode 문자, single quotes('')로 둘러싼다.
'\'' 싱글 코트
'\"' 더블 코트
* String은 primitive data type이 아니라 class이다.
Integral - byte, short, int, long (숫자 뒤에 l이나 L 붙임. 소문자 l 사용안하기를 권유한다.)  int 디폴트 데이타 타입

Integral Data Type 범위

사용자 삽입 이미지

Floating Point - double, float
double이 디폴트
E 또는 e (exponetial value)
F 또는 f (float)

D 또는 d (double)
Floating Point 데이타 타입 범위

사용자 삽입 이미지


Posted by 도야지71
,