Computer Science, asked by freeb12345, 1 month ago

Differentiate between primitive and composite data type with an example​

Answers

Answered by dhumaljayshree12
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