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


Please Help Members By Posting Answers For Below Questions

What is a function argument in java?

528


What is annotation in java?

580


What is meant by design patterns?

598


What are java threads?

627


What is the difference between && and & in java?

583






What is the meaning of immutable regarding string?

528


Why does it take so much time to access an applet having swing components the first time?

1404


Can a lock be acquired on a class in java programming?

542


What is the difference between serializable and externalizable interfaces?

581


What is the use of a conditional inclusion statement in Java ?

596


What is field name?

592


how are methods defined?

557


What is the method to expand and collapse nodes in a jtree?

622


Does java isempty check for null?

584


What are the important features of Java 9 release?

546