A type is the category to which a value belongs.

value javaIn Java you have to mention what kind of information you save.

Example

However Java uses more terms. For example for integers, Java uses the term: int. So if I want to save the value 1 in Java, this is the way to do it:

int valueName = 1;

WHAT IS DATA?

Data is another word for information. People don’t say it like this, but translated to simplified English, programmers say:  (INFORMATION) TYPE. And that makes sense, because in Java you have to mention what kind of information you save.

Other terms

Here you can find all the DIFFERENT (DATA) TYPES in Java.