Primitive Data Types :
This kind of data types have fixed size . Here is the list of various Primitive data types in JAVA with their corresponding size .
NON - Primitive Data Types :
This kind of data types have variable size ... i.e. can have user defined size .
In JAVA we normally have three types of data types as non primitive data types :
Size of these data types is defined by user and we will check later in the blog .
This kind of data types have fixed size . Here is the list of various Primitive data types in JAVA with their corresponding size .
- short : Size 2 bytes
- int : Size 4 bytes
- long : Size 8 bytes
- double : Size 8 bytes
- char : Size 2 bytes
- boolean : Size 1 bit
NON - Primitive Data Types :
This kind of data types have variable size ... i.e. can have user defined size .
In JAVA we normally have three types of data types as non primitive data types :
- Classes
- Array
- String
Size of these data types is defined by user and we will check later in the blog .
0 comments:
Post a Comment