# Find exponential using pow method of Math class in Java

Java Match pow method example shows how to find the exponential number using the pow method of the Java Math class.

## How to find exponential value in Java using the pow method?

Use the `pow` static method of the Java Math class to find an exponential number.

Where x is the base value and y is the exponent.

This method returns the value of the base raised to the power of the exponent.

Output

Below given table shows some of the special case base and exponent values and their respective results.

 Base Exponent Result Any 0 or -0 1.0 Any 1.0 Same as base value Any NaN NaN NaN Non Zero NaN abs(base) > 1 Double.POSITIVE_INFINITY Double.POSITIVE_INFINITY abs(base) < 1 Double.NEGATIVE_INFINITY Double.POSITIVE_INFINITY abs(base) > 1 Double.NEGATIVE_INFINITY 0 abs(base) < 1 Double.POSITIVE_INFINITY 0 1 Double.POSITIVE_INFINITY or Double.NEGATIVE_INFINITY NaN 0 >0 0 Double.POSITIVE_INFINITY < 0 0 0 < 0 Double.POSITIVE_INFINITY Double.POSITIVE_INFINITY > 0 Double.POSITIVE_INFINITY 0 > 0 and != finite odd integer 0 Double.NEGATIVE_INFINITY < 0 and != finite odd integer 0 -0 positive finite odd integer -0 Double.NEGATIVE_INFINITY negative finite odd integer -0 -0 < 0 and != finite odd integer Double.POSITIVE_INFINITY Double.NEGATIVE_INFINITY > 0 and != finite odd integer Double.POSITIVE_INFINITY -0 negative finite odd integer Double.NEGATIVE_INFINITY Double.NEGATIVE_INFINITY positive finite odd integer Double.NEGATIVE_INFINITY

This example is a part of the Java Math class tutorial with examples.