Q. Which of the following is a primitive data type in Java?
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.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.