Learn different approaches to calculate the power of a number in Java without using Math pow() method.
Sort: