Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


Why Collections were made Generic ?


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.


asked Jun 29, 2015 in Core java by rajesh
0 votes
85 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...