[编写高质量代码:改善java程序的151个建议]建议35:不要在类中初始化其他类 容易引起循环和堆栈运行溢出。 class Father{ Father(){new Other();} } class Son extends Father{ Son(){} } class Other(){ Other(){ new Son(); } }