Java Constant
In java language these constants are classified into following types
1.Numerical constants
2.Character constants
Numerical Constants:Numerical means numbers .these are classified into 2 types
1.Integer constants
2.Real constants
Integer Constants:
Integer constants menas + or — numbers.
Example:
int x=10;
int y=-10
Real Constants:
Real constants means floating values or decimal values.
Example:
float x=10.0;
Comments
Post a Comment