错误提示:索引超出范围

package chapter04;

public class example11 {

public static void main(String[] args) {
    int[] source= {101,102,103,104,105,106};
    int[] destination= {201,202,203,204,205,206,207};
    System.arraycopy(source,2,destination,2,3);
    for(int i=0;i<10000;i++) {
        System.out.println(i+":"+destination[i]);           
    }

}

}
错误提示:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 7 out of bounds for length 7
at chapter04.example11.main(example11.java:10)
在for遍历中i<10000改为i<destination.length就没有错误提示了,为什么?求大佬指教

遍历数组不能超过数组的长度(下标值),如你的destination数组,长度是7,下标值是0-6, destination[7]是不存在的,你这样写就会报ArrayIndexOutOfBoundsException