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.
below sample will show the difference.