1.

Which of these class contains only floating point functions?(a) Math(b) Process(c) System(d) ObjectThe question was posed to me by my school teacher while I was bunking the class.This intriguing question comes from Java.lang in chapter Exploring java.lang & java.io of Java

Answer»

The correct answer is (a) Math

Explanation: Math CLASS contains all the floating point FUNCTIONS that are used for geometry, trigonometry, as well as several GENERAL purpose methods. Example : sin(), cos(), exp(), SQRT() etc.



Discussion

No Comment Found

Related InterviewSolutions