1.

Which of these methods is used to check for infinitely large and small values?(a) isInfinite()(b) isNaN()(c) Isinfinite()(d) IsNaN()The question was asked in an internship interview.My question is taken from Java.lang Introduction in portion Exploring java.lang & java.io of Java

Answer»

The CORRECT answer is (a) isInfinite()

BEST explanation: isinfinite() METHOD returns true is the VALUE being tested is infinitely LARGE or small in magnitude.



Discussion

No Comment Found

Related InterviewSolutions