Home »
MCQs »
Java MCQs
Which Java method is used to add all of the specified elements to the specified collection?
90. Which Java method is used to add all of the specified elements to the specified collection?
- addValue()
- copy()
- cpy()
- addAll()
Answer: D) addAll()
Explanation:
The addAll() method of java.util.Collections class is used to add all of the specified elements to the specified collection.