English

Java has ______ primitive data types.

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]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 1. (iv) | Page 64
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×