fork download
  1. <pre>
  2.  
  3. public void bar() {
  4.  
  5. print("hello");
  6.  
  7. try {
  8.  
  9. print("Paul");
  10.  
  11. throw new Exception();
  12.  
  13. print("John");
  14.  
  15. }
  16.  
  17. catch {
  18.  
  19. print("Ringo");
  20.  
  21. }
  22.  
  23. finally {
  24.  
  25. print("George");
  26.  
  27. }
  28.  
  29.  
  30.  
  31. print("bye");
  32.  
  33. }
  34.  
  35. </pre>
Success #stdin #stdout 0.03s 25976KB
stdin
Standard input is empty
stdout
<pre>

public void bar() {

  print("hello");

  try {

     print("Paul");

     throw new Exception();

     print("John");

  }

  catch {

     print("Ringo");

  }

  finally {

     print("George");

  }

 

  print("bye");

}

</pre>