adspace
Explain the different scenarios wherein you need to use different types of collections i.e list, set and map?
Answer Posted / Naeem Akhatar
Lists are used when you want to maintain the order of elements. Sets are used when you want to ensure unique values without any particular order. Maps are used to store key-value pairs where keys must be unique.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers