How is rounding performed under integer division?

Answers were Sorted based on User's Feedback



How is rounding performed under integer division?..

Answer / divya

the fractional part of the result is truncated .this is
known as rounding toward zero.

Is This Answer Correct ?    1 Yes 0 No

How is rounding performed under integer division?..

Answer / satya

We can use java.lang.Math.ceil() and java.lang.Math.floor()
methodes in order for rounding numbers.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Core Java Interview Questions

how can u apply shallow cloning and deep cloning to create object?

1 Answers   Yash Technologies,


Why are inner classes required?

3 Answers   Oracle,


What is an arraylist in java?

0 Answers  


How do you relate a Interface to a Class? Tell me in Detail?

4 Answers  


What is the purpose of the runtime class in java programming?

0 Answers  






What are facelets templates?

0 Answers  


How Applets & Servlets will communicate with each other?

2 Answers  


why the primitive data type have classes?

4 Answers  


What is locale?

0 Answers  


Define nashorn in java8.

0 Answers  


Is there is any error if you have multiple main methods in the same class?

10 Answers   Infosys, Wipro,


What is an empty string in css?

0 Answers  


Categories