posted 24 years ago
double a = 14.9;
double b = method(a);
System.out.println(b);
If this snippet displays 15.0 in the standard output, what Math method(s) could method() have invoke?
Select the one right answer.
A)ceil() and round()
B)floor() and round()
C)ceil() only
D)floor() only
E)round() only
answer is given as c. But shouldnt b be correct.
Thanks!
ans) c But I think as a