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

Java allows numeric comparison between char (16-bit unsigned) and double. The char 'd' has Unicode value 100, so the comparison ch < 32.00 evaluates to false, but the syntax is valid. Java promotes char to int then to double for the comparison.