1.java中最经典的实参和形参及引用值的
public class Test4 {
public static void main(String[] args) {
Integer var1=new Integer(1);
Integer var2=var1;
doSomething(var2);
System.out.println(var1.intValue());
System.out.println(var2);
System.out.println(var1);
System.out.println(var2==var1);
}
public static void doSomething(Integer integer){
integer=new Integer(2);
}
}