Home » JAVA Programming » Data Structures » Question
  1. Which class provides thread safe implementation of List?
    1. HashList
    2. List
    3. ArrayList
    4. CopyOnWriteArrayList
    5. None of these
Correct Option: D

CopyOnWriteArrayList is a concurrent collection class. Its very efficient if ArrayList is mostly used for reading purpose because it allows multiple threads to read data without locking, which was not possible with synchronized ArrayList.



Your comments will be displayed only after manual approval.