public class ExStack { private void a(int c) { System.out.println(c); if (c>10) { Thread.dumpStack(); return; } b(c+1); } private void b(int c) { c(c+1); } private void c(int c) { a(c+1); } public static void main(String[] args) { ExStack exs = new ExStack(); exs.a(0); } }