What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
Double i = new Double(257.5);
Double x = i.MAX_VALUE;
System.out.print(x);
}
}
class Output
{
public static void main(String args[])
{
Double i = new Double(257.5);
Double x = i.MAX_VALUE;
System.out.print(x);
}
}A. 0
B. 1.7976931348623157E308
C. 1.7976931348623157E30
D. None of the mentioned
Answer: Option B

Join The Discussion