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

What is protected and friendly?

1 Answers  


What is the difference between the paint() and repaint() methods in java programming?

0 Answers  


What is the static block?

0 Answers  


What is the functionality of Webserver?

2 Answers  


How many methods does cloneable interface contains?

6 Answers  


Can list have duplicates in java?

0 Answers  


What is java english?

0 Answers  


How to count occurrences of each duplicate element in a list {a,b,d,c,a,b} ? Thanks in Advance

2 Answers   TCS,


Explain the difference between runnable and callable interface in java?

0 Answers  


What is struts in java?

0 Answers  


What is module in project?

0 Answers  


Will minecraft java be discontinued?

0 Answers  


Categories