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

A
String
B
Array
C
int
D
Object
Solution:

Java has 8 primitive data types: byte, short, int, long, float, double, boolean, and char. String, Array, and Object are non-primitive (reference) types.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!