K

Kiran Rapria • 4.26K Points
Extraordinary

Q. 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);
    }
}

  • (A) 0
  • (B) SystemException
  • (C) 1.7976931348623157E30
  • (D) None of the mentioned
  • Correct Answer - Option(B)
  • Views: 25
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics