Hi. More comprehensive introduction to numbers in Java can be found here: http://farenda.com/java/literals/ - it shows how to define them, even with Java 7 underscores!
Data type is a way of telling the operating system how much memory to allocate for a variable and what type of variable is going to be stored in memory location.
Types of Data types:
1) Primitive Data type
2) User-defined/Derived Data type
Integer Data type:
For storing integer non-floating data there is int,short and long
For storing floating data there is float and double.
Comments
Hi. More comprehensive introduction to numbers in Java can be found here: http://farenda.com/java/literals/ - it shows how to define them, even with Java 7 underscores!
Data type is a way of telling the operating system how much memory to allocate for a variable and what type of variable is going to be stored in memory location.
Types of Data types:
1) Primitive Data type
2) User-defined/Derived Data type
Integer Data type:
For storing integer non-floating data there is int,short and long
For storing floating data there is float and double.
For more features refer following link:
java.meritcampus.com/t/13/Primitive-data-types?tc=mm214
java.meritcampus.com/t/15/Integer-data-types?tc=mm215