My Java Quiz

The ultimate place to learn Java!

Question #62: What is the output of the following code?

int i = 0;
public static void main(String args[])
{
  int i = 1;
  change(i);
  System.out.println(i);
}
public static void change(int i)
{
  i = 2;
  i *= 2;
}