About Question enthuware.ocpjp.v8.2.1101 :
Posted: Fri May 13, 2016 11:24 am
Hi !
I can’t understand why the correct answer is
boolean replace(K key, V oldValue, V newValue) ?
boolean remove(Object key, Object value) , V putIfAbsent(K key, V value) and
boolean replace(K key, V oldValue, V newValue) where provided by java.util.Map and now are available in java.util.concurrent.ConcurrentMap - except that the action is performed atomically.
Maybe I do not understand correctly the meaning of the question?
I can’t understand why the correct answer is
boolean replace(K key, V oldValue, V newValue) ?
boolean remove(Object key, Object value) , V putIfAbsent(K key, V value) and
boolean replace(K key, V oldValue, V newValue) where provided by java.util.Map and now are available in java.util.concurrent.ConcurrentMap - except that the action is performed atomically.
Maybe I do not understand correctly the meaning of the question?