1.

Which of these class contains all the methods present in Math class?(a) SystemMath(b) StrictMath(c) Compiler(d) ClassLoaderThe question was posed to me by my college director while I was bunking the class.Enquiry is from Java.lang topic in section Exploring java.lang & java.io of Java

Answer»

The correct choice is (b) StrictMath

Easy EXPLANATION: SystemMath class defines a complete set of MATHEMATICAL methods that are parallel those in Math class. The DIFFERENCE is that the StrictMath version is guaranteed to GENERATE precisely identical results across all Java implementations.



Discussion

No Comment Found

Related InterviewSolutions