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 the technique adopted to create an immutable class?

517


what is daemon thread and which method is used to create the daemon thread? : Java thread

518


What are the differences between forwarding () method and sendredirect() methods?

615


Can you extend main method in java?

613


What is meant by polymorphism?

529






What is the numeric promotion?

491


Which is better list or arraylist in java?

485


What is the purpose of declaring a variable as final?

480


What does n mean in java?

496


Explain a situation where finally block will not be executed?

568


How the interruptible method gets implemented?

549


What is difference between == and === in js?

539


What is proper subset?

529


How does a for loop work?

494


What are the 6 functions?

503