Multiple choice

The……..suffix directs the compiler to create a float value from a sequence of characters representing a floating point number; otherwise the compiler would by default create either value or an int value.

  1. c or C

  2. i or I

  3. F or f

  4. D or d

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

Floating point literals in Java are double by default. To specify a float literal, you must append 'f' or 'F' to the number.