Question: Why Generics was introduced in Java?
Why Generics was introduced in Java and what is was its motive?
Generics were introduced in Java for the development of more bug free code. It enables the code for compile time type checking.
Read the tutorial for more details of Generics: Introduction to Generics in Java.