close

Java 好多過去熟悉的東西...
不過都忘光了

整數:

資料型態 計憶體大小 存放範圍值
byte 1byte -128~127
short 2bytes -32768~32767
int 4bytes -2147483648~2147483647
long 8bytes -9223372036854775808~9223372036854775807

浮點數:
資料型態 計憶體大小 存放範圍值
float 4bytes
正值 -3.4E38~-1.4E-45
負值 1.4E-45~3.4E38
double 8bytes
正值 -1.7976931348623157E+308~-4.9E-324
負值 4.9E-324~1.7976931348623157E+308


其他:

資料型態 計憶體大小 存放範圍值
boolean 1bit ture~false
char 2bytes \u0000~\uFFFF

abstract boolean
break byte case catch
char
class const continue default do double else
extands false final finally float for goto
if implements
import instanceof int
interface long
native new null
package private protected public
return short
static strictfp
super switch
synchronized
this
throw throws transent true try void
volatile while assert        

 

arrow
arrow
    全站熱搜

    JewelABBA 發表在 痞客邦 留言(0) 人氣()