Sunday, August 26, 2012

CopyOnWriteArrayList difference with normal ArrayList

CopyOnWriteArrayList was introduced in JDK5, Which will be used to avoid the java.util.ConcurrentModificationException while modifying List by multiple threads or inside loop.

below sample will show the difference.


0 comments:

Post a Comment