I am getting the exception can someone tell me as where is the error?
public class ArrayTest {
public static void main(String[] args)
{
int arr[] = new int [5];
for(int i=1;i<=5;i++)
{
arr[i]= i*i;
}
for(int i=1;i<=5;i++)
{
System.out.println(arr[i]);
}
}
}