My Java Quiz

The ultimate place to learn Java!

Question #37: What gets printed?

public class PowerOfTwo {

  public static void main(String[] args) {
    System.out.println(powerOfTwo(32));
  }

  static int powerOfTwo(int power) {
    return 1 << power;
  }

}