Which of the following methods are available in java.util.concurrent.ConcurrentMap in addition to the methods provided by java.util.Map?
You answered: boolean remove(Object key, Object value),
V putIfAbsent(K key, V value),
boolean replace(K key, V oldValue, V newValue)
But since java 1.8, all of them are also found in Map interface as a default methods. Please give an explanation on this?
Thank you.
About Question enthuware.ocpjp.v8.2.1101
Moderators: Site Manager, fjwalraven
-
- Posts: 2
- Joined: Tue Dec 01, 2015 2:40 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1101
You are right. This question has now been fixed to including this point.
thank you for your feedback!
Paul.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 6 guests