what is the output ? Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0
Answers were Sorted based on User's Feedback
Answer / 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 |
What is data object example?
how to fing linkedlist is circular or not?
Difference between a process and a program?
What is singleton class in java and how can we make a class singleton?
When do we use hashset over treeset?
What is class level lock ?
Does string is thread-safe in java?
Which is best ide for java?
What is hasnext in java?
Class A extends Class B but Class A also inherit Super Class Object so it is multiple inheritence give reason in support of your answer
Thanks A.jyotsna, Can u tell me differnce between abstract class and interface vikash
What are the differences between path and classpath variables?