Match methods and their purposes

Report a typo
Match the following methods and their purposes.
Match the items from left and right columns
set1.retainAll(set2)
set1.removeAll(set2)
set1.addAll(set2)
set1.containsAll(set2)
Intersection of sets
Difference of sets
Union of sets
Checking whether a set is subset
___

Create a free account to access the full topic