Home

Java Variables Quiz 2

What is output of the following sequence of statements?

  int a = 10;
  int b = 20;
  int x = a;
  a = b;
  b = x;
  System.out.print(a + "," + b);
Your answer: