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 the available thread states in a high-level?
Why do we need wrapper class?
How to instantiate member inner class?
What is mnemonic code?
What does it mean to be immutable?
What is java lang string?
When do you get classcastexception?
What are the differences between the constructors and methods?
What are the data types supported by java?
What are the two categories of data types in the java programming language?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is bom encoding?
What is the difference between jdk, jre, and jvm?
What is thread synchronization in java?
What is the purpose of using javap?