Sunday, July 22, 2012

JAVA DATATYPES

The datatypes are used to store the values I may want to work on.


byte
short
int
long
float
double
boolean


These are also called primitive datatypes.


I won't discuss the max values each datatype can store and differences among the datatypes. I also won't discuss the Operators here.


Yet, one thing that is important to discuss is Wrappers for the primitive datatypes.


byte - Byte class
short - Short
int - Integer
long - Long
float - Float
double - Double
boolean - Boolean


I will discuss what are Custom datatypes when we discuss Class & Objects.

No comments:

Post a Comment