R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which method adds all elements of one collection to another?

  • (A) add()
  • (B) append()
  • (C) merge()
  • (D) addAll()
  • Correct Answer - Option(D)
  • Views: 7
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`addAll(Collection c)` adds all elements from the specified collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.