About Question enthuware.ocpjp.v8.2.1101

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
binget
Posts: 2
Joined: Tue Dec 01, 2015 2:40 pm
Contact:

About Question enthuware.ocpjp.v8.2.1101

Post by binget »

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.

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1101

Post by admin »

You are right. This question has now been fixed to including this point.

thank you for your feedback!
Paul.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 3 guests