Java SE 11 Developer (1Z0-819) — Question 27

Which three initialization statements are correct? (Choose three.)

Answer options

Correct answer: C, B, F

Explanation

The correct answers are C, B, and F. Option C initializes a float with a literal that includes an 'f', option B correctly casts a character to a short, and option F uses underscores for better readability in an integer. Options A and E contain syntax errors, D has a type mismatch, and G incorrectly uses 'false' as a variable name, which is a reserved keyword.