4.Language Fundamental

 1 ,
簡單類型           長度                  範圍
byte         -2 ^7 to 2^7-1           –128~127
 char     0 - 2^16-1                        0~65535( no 65536)        ASCII 碼的範圍仍然是0127
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–3081.7e+308

float

32

3.4E–0383.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 /  */

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章