打印字节数

 

public static void main(String[] args) {
        System.out.println("Byte" + Byte.SIZE/8);
        System.out.println("Short" + Short.SIZE/8);
        System.out.println("Integer" + Integer.SIZE/8);
        System.out.println("Long" + Long.SIZE/8);
        System.out.println("Double" + Double.SIZE/8);
        System.out.println("Float" + Float.SIZE/8);
    }

Byte1
Short2
Integer4
Long8
Double8
Float4