There is no operator, but there is a method. Math.pow(2, 3) // 8.0 Math.pow(3, 2) // 9.0. FYI, a common mistake is to assume 2 ^ 3 is 2 to the 3rd power. It is not. The caret is a valid operator in Java (and similar languages), but it is binary xor.