Data types refer to the different sizes and values that can be stored in the variable. Two types of data type are in Java programming
THERE ARE TWO TYPES OF DATA TYPE
Primitive data types:
**These are predefined data types provided by the Java language**
**They directly store values in memory**
** There are eight primitive data types**
Non-Primitive (Reference) Data Types
**These data types do not store the actual value directly in memory but hold a reference (memory address) to the object**
**They are created by the programmer and are not defined by Java, except for String. Non-primitive data types include**
Top comments (0)