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 main method?
What technique is carried out to find out if a particular string is empty?
why String class is immutable.
Why map is used in java?
What is hard code & soft code?
in a console we r giving java <class name> if r pressing enter where it'll goes
program to find 25 square = 625 here the 625 of last two digits is equal to 25, i don't know excatly what this type of number is called
What is Unicast and Multicast object? Where we will use?
1 Answers Scope International,
Can a class be private in java?
Can we sort list in java?
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?
What is stringbuffer in java?