Vidyalelo
Java Programming · Q248

Interfaces and Abstract Classes

Programming · Java Programming · question 248

Q248

What will be the output of the following Java program? class Output public static void main(String args[]) Double i = new Double(257.578123456789); float x = i.floatValue(); System.out.print(x);

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

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board