1 ,
简单类型 长度 范围
byte -2 ^7 to 2^7-1 –128~127
char 0 - 2^16-1 0~65535( no 65536) ASCII 码的范围仍然是 0 ~ 127
short -2 ^15 to 2^15-1 –32,768 ~ 32,767
int -2 ^31 to 2^31-1 –2,147,483,648 ~ 2,147,483,647
long -2 ^63 to 2^63-1 –9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
简单类型 长度 范围
byte -2 ^7 to 2^7-1 –128~127
char 0 - 2^16-1 0~65535( no 65536) ASCII 码的范围仍然是 0 ~ 127
short -2 ^15 to 2^15-1 –32,768 ~ 32,767
int -2 ^31 to 2^31-1 –2,147,483,648 ~ 2,147,483,647
long -2 ^63 to 2^63-1 –9,223,372,036,854,775,808 ~ 9,223,372,036,854,775,807
名称 | 位数 | 数的范围 |
double | 64 | 1.7e–308~1.7e+308 |
float | 32 | 3.4E–038~3.4E+038 |
2Although you need not remember these escape sequences but it's good to just have an idea.
Folowing EscapeSequences are available :
/ b /* /u0008: backspace BS */
/ t /* /u0009: horizontal tab HT */
/ n /* /u000a: linefeed LF */
/ f /* /u000c: form feed FF */
/ r /* /u000d: carriage return CR */
/ " /* /u0022: double quote " */
/ ' /* /u0027: single quote ' */
/ / /* /u005c: backslash / */