Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the output ? Math.floor(-2.1)
a)2
b)-2
c)-3.0
d)0

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you use Bubble Sort to sort the number of elements?

1061


How do I get 64 bit java?

1219


How will you invoke any external process in java?

1169


Is java hard to learn?

967


Why does java does not support multiple inheritance? Explain

1041


What is the difference between jfc & wfc?

1122


Explain about features of local inner class?

1189


How many days will it take to learn java?

981


What do you understand by garbage collection in Java? Can it be forced to run?

1036


Which is faster string or stringbuilder?

995


What is thread start?

1018


What is tcp and udp?

1074


What is independent and dependent variables in research?

919


Is array synchronized in java?

1086


What is substring 1 in java?

1235