What is difference between List, Set and Map. Give a scenario when we use either one of them.
List : It’s a collection of ordered elements. Elements have indexes. List can have duplicate elements.
Set : It’s un-ordered collection of elements. Set doesn’t have duplicate elements.
Map : It’s a Key Value pair. The Keys are unique.
You must be logged in to reply to this topic.