Let's compare two types of lists. Two characteristics apply to both list types.
CopyOnWriteArrayList
CopyOnWriteArrayList vs ArrayList
Report a typo
Choose one or more options for each row
| CopyOnWriteArrayList | ArrayList | |
|---|---|---|
| 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. |
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.