fork download
  1.  
  2. class Main
  3. {
  4. public static void main (String[] args)
  5. {
  6. try
  7. {
  8. try
  9. {
  10. throw new IllegalStateException("A");
  11. }
  12. finally
  13. {
  14. try
  15. {
  16. throw new IllegalStateException("B");
  17. }
  18. catch(Throwable e)
  19. {
  20. System.out.println(e);
  21. }
  22. }
  23. }
  24. catch(Throwable e)
  25. {
  26. System.out.println(e);
  27. }
  28. }
  29. }
Success #stdin #stdout 0.1s 320512KB
stdin
Standard input is empty
stdout
java.lang.IllegalStateException: B
java.lang.IllegalStateException: A