Skip to main content

Generics in Java

Learn Generics in Java (Advanced Java Concepts, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

1. Introduction Generics let classes and methods work with types supplied by the caller, such as List<String>, with compile-time type checking.

More lessons in Advanced Java Concepts