CopyOnWriteArrayList vs ArrayList

Report a typo

Let's compare two types of lists. Two characteristics apply to both list types.

Choose one or more options for each row
CopyOnWriteArrayListArrayList
Implements the List interface.
Allows thread safety.
Very costly if you update it often.
Uses the copy-on-write technique.
The underlying structure is Object[].
Can perform the remove operation while iterating.
___

Create a free account to access the full topic