What is Generics in java?

Generics is a concepts introduced in the java 1.5 version. Generics is called as parameterized types.

Generics are design to provide type safely, which will reduce the need for type_casting.

Generics are set to be type erasures, which mean the generics information will be available up to compilation once compile it does not contain generic information it will be erasure.