Data Types
in Java
- Primitive Data Type
- Non-Primitive Data Type
Primitive
Data Type:–
- Integer type –
- byte (Memory Capacity - 8 bit)
- short (Memory Capacity -16 bit)
- int (Memory Capacity 32 bit)
- long (Memory Capacity - 64 bit)
- Floating point types
- float – (Memory Capacity 32 bit)
- double - (Memory Capacity - 64 bit)
- Character types
- char (Memory Capacity -16 bit)
- Boolean
- boolean – (can hold only two values- true or false)
Non-Primitive data types
- String
- Array
- Class etc
No comments:
Post a Comment