文章分类 -  Java

摘要:The ConcurrentModificationException is an exception that occurs when attempting to modify a collection (such as a list, set, or map) while iterating o 阅读全文
posted @ 2023-12-01 14:02 gan_coder 阅读(13) 评论(0) 推荐(0)
摘要:一个有趣的问题 从别人那里拷来的代码用不了 显示错误“类文件具有错误的版本 61.0,应为52.0” 后面发现其实是这样的 复制的时候连.class文件也一起复制过来了 然后编译器检查发现它们是对应的,就没有重新编译,但是别人的环境跟我的机器不一样 导致得到的class无法在我的机器上正常运行 解决 阅读全文
posted @ 2023-11-17 23:28 gan_coder 阅读(176) 评论(0) 推荐(0)
摘要:==是判断地址是否一样 equals判断具体的值是否一样 阅读全文
posted @ 2023-10-15 20:33 gan_coder 阅读(15) 评论(0) 推荐(0)
摘要:一般来说调用都是没有问题的。 但是当调用 Math.abs(-2147483648)时返回的是负数,因为超过了int的表示范围,就像注释里说的 Note that if the argument is equal to the value of Integer.MIN_VALUE, the most 阅读全文
posted @ 2023-10-07 08:44 gan_coder 阅读(64) 评论(0) 推荐(0)