Multiple choice

What is the data type for the number 9.6352?

  1. float

  2. double

  3. Float

  4. Double

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Java, any decimal literal like 9.6352 is by default of type double, which is a 64-bit floating-point type. The float type (32-bit) exists but requires an 'f' suffix (e.g., 9.6352f). The capitalized versions 'Float' and 'Double' refer to wrapper class objects, not primitive types. So 9.6352 is implicitly a double.