Which one of the following statements about what Set.retainAll does is true?
Answer: A
It is intersection in place, and it returns whether anything was removed. removeAll is the complementary operation, and addAll is union, which together give the three set operations without leaving the collections framework.
Please log in or register to report this question.