Different types of Java platforms and their use
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
Comments
Leave a comment