web | Java

在32位平台char short int long float double各自的字节数

千锋教育

char类型为1字节


short类型为2字节


int类型为4字节


long类型为4字节


float类型为4字节


double类型为8字节