fork(5) download
  1. class X
  2. {
  3. public static void main(String [] args)
  4. {
  5. try
  6. {
  7. badMethod();
  8. System.out.print("A");
  9. }
  10. catch (Exception ex)
  11. {
  12. System.out.print("B");
  13. }
  14. finally
  15. {
  16. System.out.print("C");
  17. }
  18. System.out.print("D");
  19. }
  20. public static void badMethod() {}
  21. }
Success #stdin #stdout 0.12s 320576KB
stdin
Standard input is empty
stdout
ACD