Given this code fragment:
What is the output?
Underscores within Java numeric literals are ignored. Since 12345.01 is greater than 12345.00, the conditional expression selects 12456.02f. Adding 1024 yields the float value printed as 13480.02.
12345.01
12345.00
12456.02f
1024
13480.02
Community Discussion