adplus-dvertising
frame-decoration

Question

What is the output of this program?
    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

Posted under Java Programming

Answer: (b).1.7976931348623157E308

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?

Similar Questions

Discover Related MCQs

Q. Which of these methods of Character wrapper can be used to obtain the char value contained in Character object.

Q. Which of the following constant are defined in Character wrapper?

Q. Which of these is a super class of Character wrapper?

Q. Which of these methods is used to know whether a given Character object is part of Java’s Identifiers?

Q. Which of these coding techniques is used by method isDefined()?

Q. Which of these methods of Boolean wrapper returns boolean equivalent of an object.

Q. Which of the following constant are defined in Boolean wrapper?

Q. Which of these methods return string equivalent of Boolean object?

Q. Which of these methods is used to know whether a string contains “true”?

Q. Which of these class have only one field?

Q. Which of these class contains all the methods present in Math class?

Q. Which of these method return a pseudorandom number?

Q. Which of these method returns the remainder of dividend / divisor?

Q. Which of these method converts radians to degrees?

Q. toRadian() and toDegree() methods were added by which version of Java?

Q. Which of these classes encapsulate runtime environment?

Q. Which of the following exceptions is thrown by every method of Runtime class?

Q. Which of these methods returns the total number of bytes of memory available to the program?

Q. Which of these Exceptions is thrown by loadClass() method of ClassLoader class?

Q. Which of these classes encapsulate runtime state of an object?