1 包装类型
Integer的缓存池为 -128 - 127;
八个基本类型 占bit 与字节 8 bit = 1 字节
boolean 1 byte 8 char 16 short 16 int 32 float 32 long 64 double 64
2 switch
可以作用在 byte char short int
switch使用查找表的方式来实现,JVM中使用的指令是lookupswitch
1 包装类型
Integer的缓存池为 -128 - 127;
八个基本类型 占bit 与字节 8 bit = 1 字节
boolean 1 byte 8 char 16 short 16 int 32 float 32 long 64 double 64
2 switch
可以作用在 byte char short int
switch使用查找表的方式来实现,JVM中使用的指令是lookupswitch