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