1:“字节”是byte,“位”是bit ; 2: 1 byte = 8 bit ; char 在java中是2个字节。java采用unicode,2个字节(16位)来表示一个字符。 short 2个字节 int 4个字节 long 8个字节