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 |
Is there any difference between synchronized methods and synchronized statements?
What do you mean by light weight and heavy weight components?
Can we override a variable in java?
justify c is portable
How do you create a sop?
Implementations of set interface?
Why convert an applet to an application?
what is auto boxing
When does a class need a virtual destructor?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
Explain about GridBag Layout?