Data Types
Data Types specify the different sizes and values that can be
stored in the variables.
There are two types of data types in Java.
1. Primitive Data Type.
2. Non-Primitive Data Type . 1. Primitive Data Type
Primitive data types are the building blocks of data manipulation.
There are eight primitive data types.
1. int 2. byte 3. short 4. long 5. float 6. double 7. boolean
8. char
2. Non Primitive Data Type
Non Primitive data types refer to objects. They cannot store the value of
a variable directly in memory They store a memory address of the variable.
No comments:
Post a Comment