array index

class exe3
{
public static void main(String args[])
{
try
{
int[] a=new int[100];
a[100]=100;
System.out.println("this wont come");
}
catch(Exception e)
{
System.out.println("array index out of range"+e);
}
System.out.println("after catch");
}
}

No comments:

Post a Comment

Template Design by faris vio