R

Ram Sharma • 3.40K Points
Extraordinary

Q. Which data structure is used internally by HashSet?

  • (A) ArrayList
  • (B) HashMap
  • (C) Hashtable
  • (D) TreeMap
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Java
  • Hashtags:

Explanation by: Ram Sharma
`HashSet` internally uses a `HashMap` to store its elements.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.