What are Datatypes?
Data type is a reference variables used to identify the data inside the container.
Types of Datatypes
Primitive datatypes
Byte – It stores 1 bytes – 8bits – 2^8
Short – stores 2 bytes
Int – stores 4 bytes
Long – stores 8 bytes
Float – 2 bytes
Double – 4 bytes
Char – 2 bytes
Boolean – stores true or false value
Non-Primitive Datatypes
String, Array, Class, Interface
Top comments (0)