📜  捕获数组越界异常java代码示例

📅  最后修改于: 2022-03-11 14:52:18.159000             🧑  作者: Mango

代码示例1
try {
    array[index] = someValue;
}
catch(ArrayIndexOutOfBoundsException exception) {
    handleTheExceptionSomehow(exception);
}