java fail-fast和fail-safe
摘要:
快速失败(fail—fast) 在用迭代器遍历一个集合对象时,如果遍历过程中对集合对象的内容进行了修改(如增加、删除等),则会抛出Concurrent Modification Exception。 输出结果为: 0java.util.ConcurrentModificationException 阅读全文
posted @ 2018-08-29 19:59 Deltadeblog 阅读(165) 评论(0) 推荐(0) 编辑