Written by
java-style
on
on
JAVA - 프리미티브 타입이란? (feat.레퍼런스 타입)
JAVA - 프리미티브 타입이란? (feat.레퍼런스 타입)
타입 기본값 값의 범위 값의 크기
정수형 byte 0 -128 ~ 127 1byte
short 0 -32,768 ~ 32,767 2byte
int 0 -2,147,483,648 ~ 2,147,483,647 4byte
long 0L 9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807 8byte
실수형 float 0.0f (3.4 X 10-38) ~ (3.4 X 1038) 의 근사값 4byte
double 0.0 (1.7 X 10-308) ~ (1.7 X 10308) 의 근사값 8byte
문자형 char '\u0000' 0 ~ 65,535 2byte
from http://kdg-is.tistory.com/217 by ccl(A) rewrite - 2021-12-08 21:27:55