How do you do exponents in java?



How do you do exponents in java?..

Answer / Vijay Kumar Kannojia

In Java, you can do exponents using the Math.pow(double base, double exponent) method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How does queue work in java?

1 Answers  


What all methods are used to prevent thread execution ?

1 Answers  


Whats the difference between notify() and notifyall()?

1 Answers  


How do you check if an arraylist is not empty?

1 Answers  


Difference between Map & Hashmap

2 Answers   Mastek,


How to do validation of the fields in any project ?

2 Answers  


How do I compare two strings in word in java?

1 Answers  


How will you load a specific locale?

1 Answers  


What is the largest long allowed by java?

1 Answers  


. What are the differences between constructor and method of a class in Java?

1 Answers  


What is difference between equals and hashcode method?

1 Answers  


String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?

6 Answers   Flextronics, Keane India Ltd,


Categories