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);  
            boolean x = i.isNaN();
            System.out.print(x);
        }
    }

a.

true

b.

false

c.

0

d.

1

Posted under Java Programming

Answer: (b).false

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 packages contain classes and interfaces used for input & output operations of a program?

Q. Which of these class is not a member class of java.io package?

Q. Which of these interface is not a member of java.io package?

Q. Which of these class is not related to input and output stream in terms of functioning?

Q. Which of these is specified by a File object?

Q. Which of these is method for testing whether the specified element is a file or a directory?

Q. Which of these class is used to read and write bytes in a file?

Q. Which of these method of InputStream is used to read integer representation of next available byte input?

Q. Which of these data type is returned by every method of OutputStream?

Q. Which of these is a method to clear all the data present in output buffers?

Q. Which of these method(s) is/are used for writing bytes to an outputstream?

Q. Which of these stream contains the classes which can work on character stream?

Q. Which of these class is used to read characters in a file?

Q. Which of these method of FileReader class is used to read characters from a file?

Q. Which of these class can be used to implement the input stream that uses a character array as the source?

Q. Which of these classes can return more than one character to be returned to input stream?

Q. Which of the following is not a segment of memory in java?

Q. Does code Segment loads the java code?

Q. What is JVM?

Q. Which one of the following is a class loader?