About Question enthuware.ocpjp.v8.2.1708 :
Posted: Tue Jan 15, 2019 2:48 pm
The answer is: Both the threads will complete their operations successfully without getting any exception.
Is it because of CopyOnWriteArrayList<>()?
And two threads are operating on different lists? Copied one and the original one?
There are no explanations provided so I posted here.
Is it because of CopyOnWriteArrayList<>()?
And two threads are operating on different lists? Copied one and the original one?
There are no explanations provided so I posted here.