fork download
  1. import java.util.*;
  2. import java.lang.*;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args)
  7. {
  8. System.out.println("Start.");
  9. try{
  10. try{
  11. int n = 2/0;
  12. }catch(Exception e){
  13. System.out.println("e thrown "+e.getMessage());
  14. }
  15. }catch(Exception ex){
  16. System.out.println("ex thrown "+ex.getMessage());
  17. }
  18. System.out.println("Done.");
  19. }
  20. }
Success #stdin #stdout 0.02s 245632KB
stdin
Standard input is empty
stdout
Start.
e thrown / by zero
Done.