Generics addedÂ type safetyÂ to Collection framework. Earlier collections storedÂ Object classÂ references. Which means any collection could store any type of object. Hence there were chances of storing incompatible types in a collection, which could result in run time mismatch. Hence Generics was introduced, now you can explicitly state the type of object being stored.