Math: pow(int a, int b)
/* * Output: 4096.0 */ public class MainClass { public static void main(String args[]) { System.out.println(Math.pow(2, 12)); } }