WHAT IS THE DIFFERENCE BETWEEN HASHSET AND HASHMAP?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
 607  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between HashSet and HashMap?

    HashSet contains only values whereas HashMap contains entry(key,value). HashSet can be iterated but HashMap need to convert into Set to be iterated.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!