Primitive Data Types

When writing a program in Java, we have to first define the data type before we can assign a value to it. Java creates a space in memory based on the data type that we define; these data types are categorized as primitive data types. Below are the 8 primitive data types used in Java.

Click here to read more