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

Explain about map interface in java?

671


Does importing a package imports its sub-packages as well in java?

641


Is java same as core java?

671


How we can declare a static variable?

759


Define how can we find the actual size of an object on the heap?

768






What is numeric data type?

621


Is hashmap thread safe?

644


What is main in java?

621


What is a boolean flag in java?

656


What is a static method in java?

648


What are the 8 data types in java?

612


Can list contain null in java?

752


Can list be null in java?

662


Can a class be protected in java?

606


Which of the classes will have more memory allocated?

637