Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Saturday, December 1, 2007

java code for 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.");
}
%>

No comments: