what is the output ? Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0
Answer Posted / amarnath88888
Math.floor(x) function will return the nearest integer which
is less than the passed value x.
Since -3.0 < -2.1,
-3.0 is the nearest smallest integer.
so answer is c)-3.0
| Is This Answer Correct ? | 28 Yes | 2 No |
Post New Answer View All Answers
What is the size of arraylist in java?
What is skeleton and stub? What is the purpose of those?
What is the driver class?
What is ordered map in java?
What are variable arguments or varargs?
What is a boolean flag in java?
What is meant by structural programming?
What is meant by attribute?
What is anagram number?
What is a parameter in java?
What is application system?
Can we call thread start () twice?
What is serialization in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Is java a compiler?