Q. What is the value of "d" in the following Java code snippet?
double d = Math.round ( 2.5 + Math.random() );

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 2.5
πŸ’¬ Discuss
βœ… Correct Answer: (B) 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
110
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ranjeet
Publisher
πŸ“ˆ
92%
Success Rate