1.

What is the output of this program? 1. class Output 2. { 3. public static void main(String args[]) 4. { 5. Double i = new Double(257.578123456789); 6. float x = i.floatValue(); 7. System.out.print(x); 8. } 9. }

A. 0
B. 257.0
C. 257.57812
D. 257.578123456789
Answer» D. 257.578123456789


Discussion

No Comment Found