[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

byte, short and int



Does JVM use the same memory space (4 bytes) for byte, short and int? 
The book "JAVA I/O" (Elliotte Rusty Harold) mentioned that "a single byte
still takes up four bytes of space inside the Java virtual machine, ...". I
guess a short may take 4 bytes too.