Data type of variable states that what kind of value it can hold and how much memory occupied by it. Java is strongly typed language. Java has following two data types.
- Primitive data types
- Non-primitive data types
Primitive types are the basic data types available within the Java language. Primitive data types are furthered categorized into following.
- Integral (byte,short,int,long)
|Data Type||Default Value||Size|