class TestOnly{some codes;}
public class Test{
public static void main(String[] args){
TestOnly test;//line 2
test=new TestOnly(); //line 3
}
}
我想知道为什么第二行并没有给test分配引用变量空间(试卷答案如此....)
public class Test{
public static void main(String[] args){
TestOnly test;//line 2
test=new TestOnly(); //line 3
}
}
我想知道为什么第二行并没有给test分配引用变量空间(试卷答案如此....)












