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
does java support pointers?
What is module in oop?
What is the file extension for java?
What does a boolean method return?
What are the steps involved to create a bean?
Which is faster set or list in java?
What are the advantages of arraylist over arrays?
Explain differences between collection api and stream api?
What is the advantage of functional interface in java 8?
What is bubble sorting in java?
What is the exact difference in between unicast and multicast object? Where we will use?
Differentiate between a constructor and a method? Can we mark constructors final?
What is null object in java?
What is the do while loop syntax?
What are the parts of methodology?