Answer and Explanation:
The eight primitive data types in Java include:
byte , short , int , long , float , double , boolean and char.
By size of datatype we mean the amount of memory the data type occupies. For a 32-bit processor/CPU,
The size of int data type(with whole numbers from -2,147,483,648 to 2,147,483,647) in Java is 4 bytes
The size of byte data type is 1 byte
The size of short data type is 2 bytes
The size of long data type is 8 bytes