public class TT {

public static void main(String[] args) {
TTT ttt = new TTT();
}
}class TTT {
//如果改成public static TTT tt = new TTT();就没有栈溢出的问题了
public TTT tt = new TTT();

public TTT(){
System.out.println("===");
}
}主要是不太明白整个创建的过程
控制台没有输出===,说明没有走过TTT的构造方法就直接栈溢出了
希望大家不吝赐教,谢谢