answer: CED
D
correct
this is the recursion
public void set(Map<String,String> map) {
set(map);
}
CE correct
Map
Collection<V> values()
so
Map
Collection<V> values()
set(Collection<String>) - Ok
The two lines that can replace line 1 so that the Y class compiles are C. set(map.values()) and E. super.set(map.values()).
Option C is correct because it calls the set() method with the result of calling the values() method on the map object, which returns a Collection of the values in the map.
Option E is correct because it calls the set() method in the superclass (Question98) with the result of calling the values() method on the map object, which returns a Collection of the values in the map.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
7 months, 3 weeks agoOmnisumem
1 year, 3 months agodilleman
1 year, 4 months agoStavok
1 year, 6 months ago