Differentiate between primitive and composite data type with an example
Answers
Answered by
2
Answer:
Primitive Data Types Composite Data Types
Primitive Data Types are Java's fundamental data types Composite Data Types are created by using Primitive Data Types
Primitive Data Types are built-in data types defined by Java language specification Composite Data Types are defined by the programmer
Examples of Primitive Data Types are byte, short, int, long, float, double, char, boolean Examples of Composite Data Types are Class and Array
Similar questions
Math,
1 month ago
Hindi,
1 month ago
Social Sciences,
2 months ago
Math,
9 months ago
History,
9 months ago