Primitive Data Types Flashcards
1
Q
of bytes in a Java byte?
A
1 byte or 8 bits
2
Q
of bytes in a Java short?
A
2 bytes or 16 bits
3
Q
of bytes in a Java int?
A
4 bytes or 32 bits
4
Q
of bytes in a Java long?
A
8 bytes or 64 bits
5
Q
of bytes in a Java float?
A
4 bytes or 32 bits
6
Q
of bytes in a Java double?
A
8 bytes or 64 bits
7
Q
of bytes in a Java char?
A
2 bytes or 16 bits