public class Exception{ public static void main(String[] args) { try { int a=9, b=0; int c = a/b; System.out.println("Exception occurred."); } catch(Exception e) { System.out.println("This is so called arithmetic exception divided by zero "); } }}
Not registered? Create an account
Forgot Password?
Already a registered user? Login