anonymousTheStackRepo's picture
changed folder structure
eb8cb24
raw
history blame contribute delete
382 Bytes
public class TryCatchStatements {
public static void main(String args[]) {
int[] array = new int[3];
try {
array[7] = 3;
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println("Array index is out of bounds!");
} finally {
System.out.println("The array is of size " + array.length);
}
}
}