Difference between Primitive Datatype and Non-Primitive Datatype.
|
Primitive
Datatype |
NonPrimitive
Datatype |
|
It has fixed memory
Size |
It Does not
have fixed memory Size |
|
All Primitive
Datatypes are keyword. |
All Non Primitive
Datatypes are identifires. |
|
Keywors starts
with lower cases. |
Identifires starts
with upper cases. |
|
It Store the
data of only one type. |
It can store
the data of more than one type. |
|
There are 8
types of primitive datatype. ·
Byte ·
Short ·
Int ·
Long ·
Float ·
Double ·
Char ·
boolean |
V Model Do not
move in Linear Process. ·
String ·
Class |
|
Primitive data
structure will contain some value, i.e., it cannot be NULL. |
Non-primitive
data structure can consist of a NULL value. |
0 Comments