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
Does the order of public and static declaration matter in main method?
What are the advantages and disadvantages of reference counting in garbage collection?
What are the 2 types of java programs?
What is n in java?
Can It is possible to synchronize the constructor of a Java Class?
Is java owned by oracle?
What is a lock or purpose of locks in java?
Can a constructor have different name than a class name in java?
What’s the difference between callable and runnable?
What is a protected class in java?
Can a variable be local and static at the same time?
Why method overriding is used?
What does string mean in java?
What value is a variable of the string type automatically initialized?
Should a main method be compulsorily declared in all java classes?