lastModifiedTime : 2015-09-26T23:35:04.715864Z
lastAccessTime : 2015-09-26T23:23:23.587762Z
isSymbolicLink : false
size : 475
system : false
fileKey : null
isDirectory : false
hidden : false
isOther : false
isRegularFile : true
creationTime : 2015-09-26T23:23:23.587762Z
attributes : 32
archive : true
readonly : false
D is correct.
A CopyOnWriteArrayList allows modifications while being iterated with an Iterator because the iteration happens on a reference of the List that reflects how it was when the Iterator was originated, which is why B is incorrect.
The "snapshot" style iterator method uses a reference to the state of the array at the point that the iterator was created.
This array never changes during the lifetime of the iterator, so interference is impossible and the iterator is guaranteed not to throw ConcurrentModificationException. The iterator will not reflect additions, removals, or changes to the list since the iterator was created. Element-changing operations on iterators themselves (remove, set, and add) are not supported. These methods throw UnsupportedOperationException.
What are the subtype of List<?> . (Choose two correct options.)
Answer: a, d
Explanation: For any type T , List<T> is a subtype of List<?> .