Question: what is the difference between ordinary collections and generics?
Answer: - Non-Generic collections - These are the collections that can hold elements of different data types. It holds all elements as object type. ... - 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.