1.

What is the return type of Math.random() method?(a) Integer(b) Double(c) String(d) BooleanThis question was posed to me in an online quiz.I'm obligated to ask this question of Random Number in chapter java.util – More Utility Classes of Java

Answer» CORRECT OPTION is (B) Double

For explanation: Math.random() method RETURNS floating point number or precisely a double.


Discussion

No Comment Found

Related InterviewSolutions