what is the output ? Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0
Answers were Sorted based on User's Feedback
Answer / amarnath88888
Math.floor(x) function will return the nearest integer which
is less than the passed value x.
Since -3.0 < -2.1,
-3.0 is the nearest smallest integer.
so answer is c)-3.0
| Is This Answer Correct ? | 28 Yes | 2 No |
What is a void method?
Write the code for Palindrome ?
Can you extend more than one interface?
what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0
why java does not support multiple inheritance
41 Answers Diamond, Euclid, Evergent, KLKJ, Mind Tree, NIIT, SSI Small Scale Industries, Wipro,
What is main function purpose?
What is the specification of ?CODEBASE? in an applet?
How to use string tokenizer class.
Define jit compiler?
What is the minimum and maximum length of an identifier?
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?
What does it mean to flush a file?