Consider the following: When foo is executed, what is printed out?


            public void foo () {
              int x = 42;
              int y = 24;
              mystery (x, y);
              System.out.println (x + "  " + y);
            }

            public void mystery (int var1, int var2) {
              int temp = var1;
              var1 = var2;
              var2 = temp;
            }
          

42 24
  • 24 42

There are no hints for this question