标签:
数据类型 | 大小(字节) | 范围 | 默认值 |
boolean | 1/8(1bit) | true/false | false |
byte | 1 | -128~127 (-2^7~2^7-1) | 0 |
short | 2 | -32768~32767 (-2^15~2^15-1) | 0 |
char | 2 | \u0000-\uffff (0-2^16-1) | 0 |
int | 4 | -2147483648~2147483647 (-2^31~2^31-1) | 0 |
float | 4 | 0.0f | |
long | 8 | -2^63~2^63-1 | 0 |
double | 8 | 0.0d |
标签:
原文地址:http://www.cnblogs.com/flowingcloud/p/5737934.html