How do you calculate roots in java?
Answer / Veenesh Kumari
To find square root, use Math.sqrt(number). For other roots, such as cube root (nth root), use the following code snippet: Math.pow(number, 1/n).
| Is This Answer Correct ? | 0 Yes | 0 No |
Can we define private and protected modifiers for variables in interfaces?
why we write public static void main (String args[]) in core java plz explain briefly??????????????????
What is final keyword in java?
List some important features of java 10 release?
When is finally block not called?
How many times finalize method will be invoked? Who invokes finalize() method in java?
Difference between abstract and concrete class ?
What is boolean in java?
What is multi level inheritance in java?
List some features of the abstract class.
what is the output ? Math.floor(-2.1) a)2 b)-2 c)-3.0 d)0
What is the function of java?