import java.io.*;class ex{ public static void main(String args[]) { int a[]={20,30}; int b=a[4]/2; System.out.println(b); } }
Standard input is empty
Standard output is empty
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4 at ex.main(Main.java:7)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!