Primative data type | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Primative data type

Deference b/w primative and non primative data type

19th Jul 2017, 5:27 PM
Fatihullah Noory
Fatihullah Noory - avatar
2 Answers
+ 2
byte, short, int, long, char, float, double, and boolean
19th Jul 2017, 5:33 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Primitive types are value types (i.e. they hold literals) and are stored in the stack memory whereas non-primitive are reference types and are classes or interfaces (i.e. they hold objects); they are stored in the heap memory.
20th Jul 2017, 1:46 PM
Garikai
Garikai - avatar