nerdexam
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:
  1. float var1 = (12_345.01 >= 123_45.00) ? 12_456 : 124_56.02f;
  2. float var2 = var1 * 1.024;
  3. System.out.print(var2);
What is the result?

Options

  • A13480.02
  • BAn exception is thrown at runtime.
  • C13480.0
  • DCompilation fails.

How the community answered

(35 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    77% (27)
  • D
    9% (3)

Explanation

You've hit your session limit · resets 10:20pm (America/New_York)

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice