Oracle 1Z0-808 Exam question no. 67

Q. – Given the code fragment: 

24. float var1 = (12_345.01 <= 123_45.00) ? 12_456 : 124_56.02f; 
25. float var2 = var1 + 1024; 
26. System.out.print (var2); 

What is the result? 

A) 13480.02 

B) An exception is thrown at run time. 

C) 13480.0 

D) Compilation fails.


⧪ please give your answer in a comment section.

Post a Comment

2 Comments