1
visibility

Arrange the following primitive data types in an ascending order of their size:
(i) char (ii) byte (iii) double (iv) int

  • byte char int double

  • char byte int double

  • char byte double int

  • byte char double int

The sizes of the given data types are as follows
char = 2 bytes
byte = 1 byte
double = 8 bytes
int = 4 bytes
Arranging them in ascending order gives byte < char < int < double