byte =-128부터127까지의 값을 표혀니가능하다

short=-32768~32767까지의 값을 표현 가능하다.

int=-2147483648~2147483647까지의 값을 표현가능하다.

정수형 실수형

1byte=byte

2byte=short

4byte=int float

8byte=long double

float b1=3.12121212121212F;

문자 타입

char

string

char d1=’A’;

char d2=65;

System.out.println(d1);

system.out.println(d2);

//아스키 코드 →크기를 2byte로 늘리고, 65536개 글자에 숫자값을 지정

char d3=44032;

char d4=’가’;

char d5=’\uAC00’;