Java是强类型语言,所有变量必须先定义,然后才能使用
byte占1个字节范围:-128-127
short占2个字节范围:-232768-32767
int占4个字节范围:-2147483648-2147483647
long占8个字节范围:-9223372036854775808-9223372036854775807
浮点类型
float占4个字节
double占8个字节
类
接口
数组
1B = 8b
1KB = 1024B
1MB = 1024KB
1GB = 1024MB
1TB = 1024GB
低---------------------------------->高
byte short char int long float double
原文:https://www.cnblogs.com/lwl666/p/15212289.html