Saturday, November 22, 2008

Catching an ArrayIndexOutOfBoundsException Exception



Catching an ArrayIndexOutOfBoundsException Exception


Catching an ArrayIndexOutOfBoundsException Exception


<%
try {
int array[] = new int[10];
array[100] = 100;
} catch (ArrayIndexOutOfBoundsException e) {
out.println("Array index out of bounds.");
}
%>



Post a Comment

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP