fork download
  1. class Ideone
  2. {
  3. public static void main (String[] args)
  4. {
  5. System.out.println("処理開始");
  6.  
  7. try {
  8. System.out.println("割り算開始");
  9. int a = 10 / 5;
  10. System.out.println(a);
  11. } catch(ArithmeticException e) {
  12. e.printStackTrace();
  13. } finally {
  14. System.out.println("割り算終了");
  15. }
  16.  
  17. System.out.println("処理終了");
  18. }
  19. }
Success #stdin #stdout 0.04s 2184192KB
stdin
Standard input is empty
stdout
処理開始
割り算開始
2
割り算終了
処理終了