what is the output ? Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0
Answer Posted / evelin
-2 is the nearest smallest integer to -2.1
Is This Answer Correct ? | 2 Yes | 15 No |
Post New Answer View All Answers
Explain about map interface in java?
Does importing a package imports its sub-packages as well in java?
Is java same as core java?
How we can declare a static variable?
Define how can we find the actual size of an object on the heap?
What is numeric data type?
Is hashmap thread safe?
What is main in java?
What is a boolean flag in java?
What is a static method in java?
What are the 8 data types in java?
Can list contain null in java?
Can list be null in java?
Can a class be protected in java?
Which of the classes will have more memory allocated?