Hi, when using
Java collections, the choice of which collection to use in a particular situation is always data and requirements driven? We only use Map if the data is key-value pairs and we only use Set if we want no duplicates in our data? And, we use Trees if we want data sorted?
When retrieving data from a database and dealing with large amounts of data, we should generally lean towards Hash and Tree collections since their performance is best?
Thanks!