注意Boolean是1个字节,(毕竟字节是最小的内存单元)因为没有SIZE这个方法,所以打印不出来 。
System.out.println("Integer: " + Integer.SIZE );
System.out.println("Short: " + Short.SIZE );
System.out.println("Long: " + Long.SIZE );
System.out.println("Byte: " + Byte.SIZE );
System.out.println("Character: " + Character.SIZE );
System.out.println("Float: " + Float.SIZE);
System.out.println("Double: " + Double.SIZE);