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 will be the output of round(3.7) and ceil(3.7)?



What will be the output of round(3.7) and ceil(3.7)?..

Answer / Vishal Nigam

The Math.round() method in Java rounds a number to the nearest integer, while the Math.ceil() method returns the smallest integer that is greater than or equal to the argument. Therefore, round(3.7) would result in 4 and ceil(3.7) would also result in 4.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why are the destructors for base class and derived class called in reverse order when the program exits

1 Answers   HCL,


What is the protocol is used in type4 driver?

4 Answers   CMC,


Explain the use of shift operator in java. Can you give some examples?

1 Answers  


What is final method?

1 Answers  


How do you create an array in java?

1 Answers  


If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?

5 Answers   KPIT,


What is the applet security manager, and what does it provide?

1 Answers  


what is the use of custom tags? with example?

1 Answers   Photon,


What does the “static” keyword mean?

1 Answers  


How can you debug the Java code?

6 Answers   BirlaSoft,


what is connection pooling with example?

3 Answers   Amdocs,


How to Sort list of Strings in ascending order without using java api.

1 Answers   HCL, NIIT,


Categories