Advertisements
Advertisements
Question
Java has ______ primitive data types.
Options
seven
eight
one
two
MCQ
Fill in the Blanks
Advertisements
Solution
Java has eight primitive data types.
Explanation:
Java provides exactly eight predefined primitive data types built into the language:
- Whole numbers:
byte,short,int,long - Decimal numbers:
float,double - True/False conditions:
boolean - Single text characters:
char
shaalaa.com
Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 64]
