Multiple choice technology programming languages

Is the following statement correct: char ch = 'd'; if(ch < 32.00){ }

  1. True

  2. False

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

This Java code is valid because char type is promoted to int when compared with a floating-point number. The character 'd' has ASCII value 100, which is greater than 32.00, so the condition evaluates to false. Java allows mixed-type comparisons with appropriate type promotion.