QAProgramming › Which of the following is not a primitive data type in Java?
Q

Which of the following is not a primitive data type in Java?

a.String

b.Double

c.Int

d.Boolean

A

Generally, primitive data types is Java include char, float, double, boolean, short, int, long, byte.

In turn, non-primitive types are classes, arrays, and string.

So, the correct answer is A – String

4 years ago
373 Views