Which Math method is used to calculate the absolute value of
a number?

Answers were Sorted based on User's Feedback



Which Math method is used to calculate the absolute value of a number?..

Answer / devarathnam c,kotagudibanda(po

Hi...
You can use Math.abs(); method .This is static method
defined in the Math class.

Is This Answer Correct ?    16 Yes 1 No

Which Math method is used to calculate the absolute value of a number?..

Answer / sitaram

The abs() method is used to calculate absolute values.

Is This Answer Correct ?    8 Yes 1 No

Which Math method is used to calculate the absolute value of a number?..

Answer / ravikiran

abs()

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Core Java Interview Questions

Explain different ways of creating a thread. Which one would you prefer and why?

0 Answers  


Explain the use of javap tool.

0 Answers  


Can we declare main () method as non static?

0 Answers  


What is a package in java? List down various advantages of packages.

0 Answers  


Why do we need data structure in java?

0 Answers  






Why java is not a pure object oriented language?

5 Answers   IBM,


List primitive java types?

0 Answers  


What is the use of arraylist class in java?

0 Answers  


Is void a keyword in java?

0 Answers  


Is final static java?

0 Answers  


10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? a)Direction d = NORTH; b)Nav.Direction d = NORTH; c)Direction d = Direction.NORTH; d)Nav.Direction d = Nav.Direction.NORTH;

2 Answers  


What are the advantages of exception handling?

0 Answers  


Categories