public class ExceptionHandling { public static void main(String args[]) { System.out.println("ExceptionHandling with try,catch and finally"); try { int div=8/0; } catch(ArithmeticException e) { System.out.println(e.getMessage()); System.out.println("can not divide a number by zero"); } finally { System.out.println("IAM FINALLY BLOCKED"); } } }