Datatype in java
Datatypes in java Data types specify the different sizes and values that can be stored in the variable. There are two types of data types in Java 1.Primitive data types: The primitive data types include boolean, char, byte, short, int, long, float and double. 2.Non-primitive data types: The non-primitive data types include Classes, I nterfaces, and Arrays. Primitive Datatypes in java There are 8 types of primitive data types: boolean data type byte data type short data type int data type long data type float data type double data type char data type Syntax int a=10;