用非法索引访问数组时抛出的异常。如果索引为负或大于等于数组大小,则该索引为非法索引。
官方文档传送门:java.lang.ArrayIndexOutOfBoundsException
错误举例:访问下标越界
public static void main(String[] args) throws ParseException {
int[] a = new int[3];
System.out.println(a[3]); // 正确下标: [0,2]
}