java基础 6 基本类型与运算

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

posted @ 2018-03-06 00:22  开发小拉拉  阅读(131)  评论(0编辑  收藏  举报