8种基本数据类型及取值范围

整型:code byte:-2^7 ~ 2^7-1,即-128 ~ 127。1字节。Byte。末尾加Bblog short:-2^15 ~ 2^15-1,即-32768 ~ 32767。2字节。Short。末尾加S编译 有符号int:-2^31 ~ 2^31-1,即-2147483648 ~ 2147483647。4字节。Integer。class 无符号int:0~2^32-1。变量 long:
相关文章
相关标签/搜索