Two different streams are being used here. You are using System.out. and the exception is printed with System.err. They are buffered, so one's output may print before the other's.
You can call System.out.flush(); before the exception line:
System.out.flush();
c = a/b; //Arthmetic Exception