fork download
  1. class C {
  2. public static void main(String[] args){
  3. try {
  4. int x;
  5. System.out.print("A");
  6. x=3/0;
  7. System.out.print("B");
  8. } catch (ArithmeticException e) {
  9. System.out.print("D");
  10. }
  11. catch (Exception e) {
  12. System.out.print("C");
  13. }
  14. }
  15. }
Success #stdin #stdout 0.07s 215488KB
stdin
Standard input is empty
stdout
AD