Java Programming - Java.lang Class - Discussion
Discussion Forum : Java.lang Class - Pointing out the correct statements (Q.No. 4)
4.
What two statements are true about the result obtained from calling Math.random()?
- The result is less than 0.0.
- The result is greater than or equal to 0.0..
- The result is less than 1.0.
- The result is greater than 1.0.
- The result is greater than or equal to 1.0.
Answer: Option
Explanation:
(2) and (3) are correct. The result range for random() is 0.0 to < 1.0; 1.0 is not in range.
Discussion:
1 comments Page 1 of 1.
Alok said:
10 years ago
How sir it is out of coverage area?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers