R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which class allows duplicate elements in Java Collections?

  • (A) HashSet
  • (B) TreeSet
  • (C) ArrayList
  • (D) LinkedHashSet
  • Correct Answer - Option(C)
  • Views: 8
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`ArrayList` allows duplicate elements while sets do not.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.