A Data Type in programming language is a set of data with values having predefined characteristics. There are mainly two types of Data Type :
- Primitive Data Type
- Non-primitive Data Type
Primitive Data Type :
boolean | 1-bit |
char | 2-bytes |
byte | 1-byte |
short | 2-bytes |
int | 4-bytes |
long | 8-bytes |
Float | 4-bytes |
double | 8-bytes |
Non-primitive Data Type :
- String
- array