Page 1 of 1

About Question enthuware.ocpjp.v8.2.1101 :

Posted: Fri May 13, 2016 11:24 am
by bianca_culea
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?

Re: About Question enthuware.ocpjp.v8.2.1101 :

Posted: Fri May 13, 2016 11:57 am
by admin
You are right. This has now been fixed.
thank you for your feedback.
Paul.