Computer Science, asked by humblestudent, 1 year ago

pls plz help me ..
is there an easy way to remember the hierachy of data types in Bluej.?
the order goes like:

byte
char
short
int
long
float
double

Answers

Answered by Anonymous
1
byte
char
short
int
long
float
Double

ayushi114: yez there is
humblestudent: what is it?
humblestudent: plz tell me
ayushi114: byte short int long
humblestudent: ? ??
ayushi114: no of bytes goes on doubling like 1,2,4,8
ayushi114: float (4 bytes)double ( 8 bytes)
humblestudent: ok thanks
Answered by himanshii
2
One way I found was to reorder the list into groups with same size and create a mnemonic to memorize it.

boolean (1 bits)

byte (8 bits)

char, short (16 bits)

int, float (32 bits)

long, double (64 bits)

Now the Spell :

1 hooligan got 8 bites and his 16 wheeled car was shot into floating waters double the size of london 64

hooligan : boolean

bites : byte

car - char

shot - short

double - double

london 64 - long

Similar questions