import java.util.*; class ArrayOverflowException extends Exception { int a; ArrayOverflowException(int b) { a=b; } public String toString() { return "ArrayOverflowException:"+a+" is out of bound"; } } public class Array_Exception { public static void main(String[] args) { Scanner in=new Scanner(System.in); int arr[]=new int[10]; for(int k=0;k