Number of primitive data types in Java are?

Java MCQ: Number of primitive data types in Java are?

a) 6
b) 7
c) 8
d) 9

Answer:

c) 8

Explanation:

Java has 8 primitive data types: byte, short, int, long, float, double, char, and boolean. These data types serve as the building blocks for data manipulation in Java.

Reference links:

https://www.rameshfadatare.com/learn-java-programming/
https://www.javaguides.net/p/java-tutorial-learn-java-programming.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top