Basic information About Data type
- When we want store data or information we need appropriate data type for store that information.
- In java there are so many data type to store data or information.
- In java mainly two type of data type.
- NOTE:- variable name always start with small letter.It's just naming convention its not mandatory.its industry standard.
- Primitive Data Type:-
- Syntax : DataType varibale name = value;
- Ex:- int i =10;
- int : store Non-Decimal type of numeric value
- long : store Non-Decimal type of numeric value
- byte : store Non-Decimal type of numeric value
- short : store Non-Decimal type of numeric value
- double/float :store Non-Decimal and Decimal type of numeric value
- Ex:- double d =10.20;
- Ex:- float f =20.50f;
No comments:
Post a Comment