Java Program for Div Zero Exception

Program

public class DivZero {
    public static void main(String[] args){
        int a, b;
        a = 10;
        b = 0;
        System.out.println(a/b);
    }
}

Output

Exception in thread "main" java.lang.ArithmeticException: / by zero
        at ThrowDivZero.main(ThrowDivZero.java:6)