1.

Which of these method of Double wrapper can be used to check whether a given value is infinite or not?(a) Infinite()(b) isInfinite()(c) checkInfinite()(d) None of the mentionedThe question was posed to me in an interview for internship.I want to ask this question from Java.lang in section Exploring java.lang & java.io of Java

Answer»

The correct ANSWER is (b) isInfinite()

Best explanation: isInfinite() METHODS RETURNS true if the specified VALUE is an infinite value otherwise it returns false.



Discussion

No Comment Found

Related InterviewSolutions