Vidyalelo
Java Programming · Q154

Interfaces and Abstract Classes

Programming · Java Programming · question 154

Q154

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

A.
2
B.
3
Answer
C.
4
D.
2.5

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board