Since 2004, the Java programming language has included generics within J2SE.
Generics go beyond type-safe collections and can be used to create methods and types, as well as add type-awareness to collections and other container-like classes, without breaking flexibility.
What are generics?
- Stands for generic types and generic methods
- Represent design pattern known as parameterized types and methods
- Allows a type to be defined without specifying all of the other types it uses
- Were one of most requested features of language