public class FinallyTester { static int i =0; public static String foo4x(String str){ System.out.println(str); if((++i)==10000) System.exit(1); try{ try{ return foo4x("."); }catch(Exception e){ e.printStackTrace(); }finally{ return foo4x("_"); } }finally{ return foo4x("*"); } } public static void main(String args[]){ String str = foo4x("?"); } }