public class Test {
public Test() {
new Test();
}
public static void main(String[] args) {
Test t = new Test();
}
}
上面这个代码在运行后,将会出现下面的错误,这是为什么呢?
public class Test {
public Test() {
new Test();
}
public static void main(String[] args) {
Test t = new Test();
}
}
上面这个代码在运行后,将会出现下面的错误,这是为什么呢?
转载于:https://my.oschina.net/u/3726928/blog/1613649