Page 1 of 1

Given the code fragment:List pList = new CopyOnWriteArrayList();Which statement is true?

Posted: Wed Jun 07, 2023 6:11 am
by answerhappygod
Given the code fragment:List<Person> pList = new CopyOnWriteArrayList<Person>();Which statement is true?

A. Read access to the List should be synchronized.
B. Write access to the List should be synchronized.
C. Person objects retrieved from the List are thread-safe.
D. A Person object retrieved from the List is copied when written to. E. Multiple threads can safely delete Person objects from the List.