A

Admin • 828.03K Points
Coach

Q. Which method is used to remove all elements from a collection?

  • (A) removeAll()
  • (B) clear()
  • (C) deleteAll()
  • (D) flush()

Explanation by: Admin
`clear()` removes all elements from a collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.