144k views
4 votes
What is the difference between a set and a map?

User Nuju
by
8.1k points

1 Answer

5 votes

Answer:A Set is an interface in Collection hierarchy that can't contain duplicate elements,and a Map is an interface that maps unique keys to values.

Step-by-step explanation:

User Hardik Vaghani
by
8.4k points

No related questions found