1class Main {
2 public static void main(String[] args) {
3 try {
4 int array[] = new int[10];
5 array[10] = 30 / 0;
6 } catch (ArithmeticException e) {
7 System.out.println(e.getMessage());
8 } catch (ArrayIndexOutOfBoundsException e) {
9 System.out.println(e.getMessage());
10 }
11 }
12}
13