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 |
Which package has light weight components?
Difference between a MenuItem and a CheckboxMenuItem?
Explain the difference between call by refrence and call by value?
Does java support multiple inheritance or not?
What is the console in java?
Is null an object java?
What are green threads in java?
What are java annotations?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Explain importance of throws keyword in java?
WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?
Explain about transient variables in java?