DEV Community

AmalaReegan
AmalaReegan

Posted on

Day 6 Data type in java :

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

Image description

Image description

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**
Enter fullscreen mode Exit fullscreen mode

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**
Enter fullscreen mode Exit fullscreen mode

Top comments (0)