The collections framework was designed to meet several goals. The framework had to be high-performance. The implementations for the fundamental collections (dynamic arrays, linked lists, trees, and ...
Generics make your code more flexible and easier to read, and they help you avoid ClassCastExceptions at runtime. Get started with this introduction to using generics with the Java Collections ...