data types Archive
Array of Objects : In our previous article Arrays in java, we discussed array of primitive data types as a very useful and power ful tool. Java also allows you to declare array of objects which is more useful and powerful (logically & cleanly) tool.
This tutorial covers only primitive data type casting which explains converting a value of type double to an int or an int to a double. Casting Object / reference variable will be covered in next tutorial. Numerical data are called primitive data types Objects are called reference data types The range of numeric / primitive
Java variables are used to reserve memory locations to store values. It means when you create a variable you reserve some space in memory. Space allocation depend upon data type of a variable and operating system allocates memory and decide what to be store in reserved memory. Java introduced two data type’s. Primitive data types