Q. What is the output of System.out.println(Math.random());?
Solution:
Math.random() generates a random double greater than or equal to 0.0 and less than 1.0.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Math.random() generates a random double greater than or equal to 0.0 and less than 1.0.
Strengthen Your Practice with our comprehensive question bank.