Generics are a facility of generic programming that were added to the Java programming language in 2004 within the official version J2SE 5.0. They extend Java's type system to allow “a type or method to operate on objects of various types while providing compile-time type safety.” In particular, the Java collections framework supports generics to specify the type of objects stored in a collection instance.
This mini-course is designed as a supplemental materials for the Java Object-Oriented Programming: AP Computer Science B. In this mini-course, we will be based on Java 8 SE.
- What is Polymorphism?
- What is parametric polymorphism (Generics)?
- Define Generic Class and Generic Interface
- Generic Methods
- Generic Containers
This course is a mini-course, it is not designed to be a complete educational course. It is focused on a single topic: Java Generics.
- Student who has taken (College Level/High School AP) Java 1, Java 2 or equivalents. Whoever want to know about parametric polymorphism in Java.
- College Student who are taking Java.
- High School Student who are taking AP Computer Science A/AB
- Engineers seeking for job interview preparation.