Vidyalelo
Java Programming · Q132

Interfaces and Abstract Classes

Programming · Java Programming · question 132

Q132

What will be the output of the following Java code? class Output public static void main(String args[]) Double i = new Double(257.578); int x = i.intValue(); System.out.print(x);

A.
0
B.
1
C.
256
D.
257
Answer

Answer: Option D

Solution

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