DEV Community

nipun sanjula samarakoon
nipun sanjula samarakoon

Posted on

Data Types 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:

Primitive data types:

The primitive data types include boolean, char, byte, short, int, long, float and double.

Non-primitive data types:

The non-primitive data types include Classes, Interfaces, and Arrays

Top comments (0)