A mechanism for generically specifying the data type being handled.
A mechanism for generically parameterizing the type of a class or method. It improves code reuse while preserving type safety, used by specifying the data type, as in List<String>. In Java, generics are implemented via type erasure, which strips the type parameter information out of the compiled bytecode -- meaning you can't retrieve the type argument at runtime.
© 2026 ITBGM