public class test { public static void main(String args[]) { test Z = new test(); String x = "Hello"; Integer y = new Integer(10); System.out.println(x + " " + y); Z.foo(x, y); System.out.println(x + " " + y); } public void foo(String arg_x, Integer arg_y) { System.out.println(arg_x + " " + arg_y); arg_x = "World"; arg_y = arg_y.decode("20"); System.out.println(arg_x + " " + arg_y); } } class test2 { public String x = null; public Integer y = null; public test2() { x = "Hello"; y = new Integer(10); System.out.println(x + " " + y); } public static void main(String args[]) { test2 x = new test2(); test z = new test(); } }