byte 8位
short 16位
int 32位
long 64位java
char 必需为单引号'' 且只能有一个字符3d
float
doublecode
boolean 只能为true falseblog
须要声明
String s="sadfas";字符串
byte byt = 22; //8位 -127~128 short s = 13124; //16位 -32768~32767 int a = 1; //32位 -21亿~21亿 long b = 2; //64位 19个0 char c = 's'; //单引号 只能有一个字符 float d = 1.324f; //通常必须在以后加f double e =1.324; boolean f = true; //虽然0和1表明true,false,可是不能用0 1赋值 static String str = "dsfsd"; //String类型