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 the purpose of abstract class?

0 Answers  


What is a variable declaration?

0 Answers  


wahts is mean by thread?

22 Answers   HCL, TCS,


What does super keyword do?

0 Answers  


what is use of functional interface in java 8?

0 Answers  






If a class is declared without any access modifiers, where can the class be accessed?

0 Answers  


Is java util list serializable?

0 Answers  


How use .contains in java?

0 Answers  


What is the benefit of abstract class?

0 Answers  


Differentiate between stringbuffer and stringbuilder in java.

0 Answers  


Can a java program have 2 main methods?

0 Answers  


What initialize variables?

0 Answers  


Categories