下列数据类型中,占用内存最多的是?

来源:百度知道 编辑:UC知道 时间:2024/06/17 04:28:46
boolean
byte
integer
single

single 4个

integer 2 个字节
我记得是

Byte 1字节 0 - 255
Booleam 2字节 True或者False
Integer 2字节 -32768 - 32767
Long(长整型) 4字节 -2147483648 - 2147483647
Single 4字节 负值范围:
-3.402823E38 - -1.401298E-45
正值范围:
1.401298E-45 - 3.402823E38
Double 8字节 负值范围:-1.79769313486232E308 - -494065645841247E-324
正值范围:4.94065645841247E-324 - 1.79769313486232E308
Currency 8字节 -922337203685477 - 922337203685477
Decimal 14字节 ?/ca>