public class MainClass{ public static void main(String[] argv){ int i = 9; int j = 0; int z = i/j; System.out.println(z); } }
Exception in thread "main" java.lang.ArithmeticException: / by zero at MainClass.main(MainClass.java:5)