How do you write 2.5 ^ 3.1 in Java?

a. 2.5 * 3.1
b. Math.pow(2.5, 3.1)
c. Math.pow(3.1, 2.5)
d. 2.5 ** 3.1
e. 3.1 ** 2.5

b. Math.pow(2.5, 3.1)

Computer Science & Information Technology

You might also like to view...

Excel tables can be converted to a range, but when converted all formatting is removed

Indicate whether the statement is true or false.

Computer Science & Information Technology

A static field of a generic class

A) can only be referenced by a generic static method B) may not have as its type one of the type parameters of the class C) may have any type that is legal in Java D) None of the above

Computer Science & Information Technology