Help the world stop coronavirus! Stay home!

Prev Next

Java / Set and its implementations

Explain CopyOnWriteArraySet in Java collection.

CopyOnWriteArraySet is a Set implementation backed up by a copy-on-write array. All mutative operations, such as add, set, and remove, are implemented by making a new copy of the array; no locking is ever required.

CopyOnWriteArraySet is best suited as read-only collection whose size is small enough to copy .CopyOnWriteArraySet is backed by CopyOnWriteArrayList.

CopyOnWriteArraySet iterators do not support the mutative 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...

Queue and its implementations

Comments & Discussions