A

Admin • 828.03K Points
Coach

Q. Which collection type would you use to remove duplicates from a list?

  • (A) ArrayList
  • (B) LinkedList
  • (C) HashSet
  • (D) Vector
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Java
  • Hashtags: Java Set

Explanation by: Admin
HashSet removes duplicate elements automatically.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.