Which Math method is used to calculate the absolute value of
a number?
Answers were Sorted based on User's Feedback
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 |
Answer / sitaram
The abs() method is used to calculate absolute values.
Is This Answer Correct ? | 8 Yes | 1 No |
Explain different ways of creating a thread. Which one would you prefer and why?
Explain the use of javap tool.
Can we declare main () method as non static?
What is a package in java? List down various advantages of packages.
Why do we need data structure in java?
Why java is not a pure object oriented language?
List primitive java types?
What is the use of arraylist class in java?
Is void a keyword in java?
Is final static java?
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;
What are the advantages of exception handling?