afaik,
i know the overall concept about this.
but i need to know any in depth difference between them.
and
how one is better than others?
when and where it will be used ?
afaik,
i know the overall concept about this.
but i need to know any in depth difference between them.
and
how one is better than others?
when and where it will be used ?
List, Map and Set are three different data structures used in Java, so it is hard to say which one is better over the others. They are used in different purposes.
List - This datastructure is used to contain list of elements. In case you need list of elements and the list may contain duplicate values, then you have to use List.
Map - It contains data as key value pair. When you have to store data in key value pair, so that latter you can retrieve data using the key, you have to use Map data structure.
Set - It has some similarities with List, but it can't contain duplicate elements. So when you need a set of data where duplicates are not allowed, you need this data structure.
afaik,
i know the overall concept about this.
but i need to know any in depth difference between them.
and
how one is better than others?
when and where it will be used ?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.