Question #223757

Different types of Java platforms and their use


Expert's answer

primitives :


boolean - used to store true or false values;

char - used to store ASCII characters (2 bytes)

byte - used to store integer values (1 byte)

short - used to store integer values (2 bytes)

int - used to store integer values (4 bytes)

float - used to store floating point numbers (4 bytes)

long - used to store integer values (8 bytes)

double - used to store floating point numbers (8 bytes)


reference :


object - used as a reference to a class object


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS