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
English,
20 days ago
Computer Science,
20 days ago
Social Sciences,
1 month ago
Math,
8 months ago
History,
8 months ago