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 default constructors?
what is the difference between yielding and sleeping? : Java thread
What is the epoch date?
Who developed java?
What does a za z0 9 mean?
What is the use of list in java?
How many arguments can be passed to main ()?
List some important characteristics on jre
What does substring mean?
What is ‘has a’’ relationship in java?
How can we find the actual size of an object on the heap?
Is java a prime method?
Is string a data type in java?
How do I enable java in safari?
What’s the difference between unit, integration and functional testing?