ConcurrentModificationException异常

介绍一个我今天在开发中遇到的异常:ConcurrentModificationException异常,当然它是一个非受检的异常,也就是运行时异常。

当我们在遍历集合对象的时候,不能够将集合删除。最佳实践是使用集合迭代器 Iterator,删除。

参考资料:

ConcurrentModificationException异常 - lirunfa的专栏 - 博客频道 - CSDN.NET
http://blog.csdn.net/lirunfa/article/details/7353857

posted @ 2015-03-03 01:06  李威威  阅读(126)  评论(0编辑  收藏  举报