Delete comment from: Java67
@manav CopyOnWriteArrayList uses cloned object for thread safety so for each thread it will create separate copy of COWAL and later on JVM merges this copy with the original one.So if remove operation was possible you could remove say element "A" from first cloned object but this "A" elenent will be still present in the other copies.
Merging would update element "A" again.So remove operation does not make sense so it is not used for COWAL.
Jun 11, 2016, 12:40:30 AM
Posted to What is CopyOnWriteArrayList in Java - Example Tutorial