jvm限制了线程堆栈中栈帧的深度,当出现方法的无限递归调用时会抛出异常:Exception in thread "main" java.lang.StackOverflowError
jvm堆栈
原文:http://www.cnblogs.com/viewhighly/p/3522407.html