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

Difference between static synchronization vs. Instance synchronization?

0 Answers  


What is java class writing rules?

1 Answers   Oracle,


Explain about anonymous inner classes ?

0 Answers  


How can be define MARKER interfce in java

1 Answers  


Describe the various concepts related to object oriented programming (oop).

0 Answers  


What are the two basic ways in which classes that can be run as threads may be defined?

0 Answers  


In a my eclipse editor if i want to switch from jdk 1.4 to jdk 1.6 how to do that???? Initially i have jdk1.4

1 Answers   Tech Mahindra,


What is a singleton factory?

0 Answers  


why did you choose your career in IT?

1 Answers   LIC,


How are multiple inheritances done in Java?

0 Answers   Atos Origin,


How many bits is a char?

0 Answers  


Give example to differentiate between call by value and call by reference.

0 Answers   TCS,


Categories