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)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay