import java.util.HashSet;
public class java01 {
/**
* @param args
* @throws InterruptedException
*/
public static void main(String[] args) throws InterruptedException {
ST st=null;
pt(st);
System.out.println("bb:"+(st==null?"空":"非空"));
}
public static void pt(ST st){
st=new ST();
System.out.println("aa:"+(st==null?"空":"非空"));
}
}
编程语言 引用 堆 栈 形参
------解决方案--------------------
是啊。。拷贝的是实例的地址。。