Given the fragment:
float var1 = (12_345.01 >= 123_45.00) ? 12_456 : 14_56.02f;
float var2 = var1 + 1024;
System.out.print(var2);
What is the result?
A.
13480.0
B.
13480.02
C. Compilation fails
D. An exception is thrown at runtime
MagicLen · https://magiclen.org
本站也提供繁體中文版。切換到繁體中文版
Given the fragment:
float var1 = (12_345.01 >= 123_45.00) ? 12_456 : 14_56.02f;
float var2 = var1 + 1024;
System.out.print(var2);
What is the result?
A.
B.
C. Compilation fails
D. An exception is thrown at runtime