Oracle
1Z0-809 · Question #173
Given the code fragment: 24. float var1 = (12_345.01 >= 123_45.00) ? 12_456 : 124_56.02f; 25. float var2 = var1 * 1.024; 26. System.out.print(var2); What is the result?
The correct answer is C. 13480.0. You've hit your session limit · resets 10:20pm (America/New_York)
Question
Given the code fragment:
- float var1 = (12_345.01 >= 123_45.00) ? 12_456 : 124_56.02f;
- float var2 = var1 * 1.024;
- System.out.print(var2);
Options
- A13480.02
- BAn exception is thrown at runtime.
- C13480.0
- DCompilation fails.
How the community answered
(35 responses)- A11% (4)
- B3% (1)
- C77% (27)
- D9% (3)
Explanation
You've hit your session limit · resets 10:20pm (America/New_York)
Community Discussion
No community discussion yet for this question.