In java programming Language data types are classified into two categories:
- Primitive Data Type
- Non-Primitive Data Type
In each type contain many related types are:
- Primitive Data Types
- char
- boolean
- byte
- short
- int
- long
- float
- double
- Non-Primitive Data Type (Called Reference Data Type)
A reference data type refer to an object such as array or any classes. Generally a reference data type create by using keyword new .
// array of double 5 elements double arrayDouble[] = new double[5]; // object Student Student st = new Student();