class VoirPileExecution { String [] s; VoirPileExecution() { //try { f1(); //} catch (Exception cause) { //cause.printStackTrace(); //StackTraceElement elements[] = cause.getStackTrace(); //int n=elements.length; //for (int i = 0; i < n; i++) { // System.err.println(elements[i].getFileName() + ":" // + elements[i].getLineNumber() // + ">> " // + elements[i].getMethodName() + "()"); //} //} } void f1() { f2(); } void f2() { f3(); } void f3() { f4(); } void f4() { s[100]="crasher!"; } public static void main (String [] args) { VoirPileExecution t = new VoirPileExecution(); } }