变量类型 名字类型字节取值范围默认值包装类型byte整型1byte-27~270Byteshort短整型2byte-215~2150Shortint整型4byte-231~2310Integerlong长整型8byte-263~2630.0LLongfloat浮点型4byte-2149~21490.0fFloatdouble双精度浮点型8byte-21047~210470Doublechar字符2byte-128~128\u0000(空格)Characterboolean字符boolean类型占了单独使用是4个字节,在数组中是确定的1个字节。1/4falseBoolean