Can anybody explain me
what is the difference between generic collections and collections....
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jithil JohnRank #2,791 · 506 reputationPosted Feb 9, 2016, 6:14 PM EST
Jithil JohnRank #2,791 · 506 reputationPosted Feb 9, 2016, 6:15 PM EST
- Non-Generic collections - These are the collections that can hold elements of different data types. It holds all elements as object type.
So it includes overhead of type conversions.
- Generic collections - These are the collections that can hold data of same type and we can decide what type of data that collections can hold.
Some advantages of generic collections - Type Safe, Secure, reduced overhead of type conversions.