exponentiation java code example Example 1: java exponent operator Math.pow(number, exponent) Example 2: java exponential (int) Math.pow(first, second));