摘要: 当集合结构被修改,会抛出Concurrent Modification Exception。 fail-fast会在以下两种情况下抛出ConcurrentModificationException (1)单线程环境 集合被创建后,在遍历它的过程中修改了结构。 注意 remove()方法会让expec 阅读全文
posted @ 2016-10-28 11:29 itank 阅读(415) 评论(0) 推荐(1) 编辑