//Program to demonstrate the use of ArrayIndexOutOfBoundsException
class tryblock
{
public static void main (String args[ ])
{
int [ ] no={1,2,3};
try {
//out of bound
System.out.println(no[3]);
}
catch(ArrayIndexOutOfBoundsException e)
{
System.out. println(“Array Out of the Range”);
}
}
}