摘要: NullPointerException (NPE) 发生原因:尝试使用一个尚未初始化(即为null)的对象实例。 解决方案:确保所有变量在使用前已被正确初始化。 ArrayIndexOutOfBoundsException 发生原因:访问数组时索引超出数组的范围。 解决方案:确保索引值在访问数组之 阅读全文
posted @ 2024-10-20 23:11 是橙子呐 阅读(25) 评论(0) 推荐(0)