Prev Next

Java / List and its implementations

Difference between CopyOnWriteArrayList and ArrayList in Java.

CopyOnWriteArrayList is a thread-safe collection while ArrayList is not thread-safe.

Iterator of ArrayList is fail-fast and throw ConcurrentModificationException once detect any modification in List once iteration begins but Iterator of CopyOnWriteArrayList is fail-safe and doesn't throw ConcurrentModificationException.

Iterator of CopyOnWriteArrayList doesn't support remove operation while ArrayList Iterator supports remove() operation.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Map and its implementations

Comments & Discussions