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.
Eric Chou, Ph.D.
He obtained his MS and PhD degree from the University of Southern California, Los Angeles, CA, USA. His technical fields is focused on smart sensory information processing, machine learning, optimization theory, communication and VLSI design.Currently, He is an adjunct faculty member in the On-line M.S. Computer Science/Data Science Programs at Lewis University, IL. He is also running a start-up company.
He love computational research and its application to real world. i have involved in many large-scale computer/communication product research development in many world-leading company such as HP, Micrel, and many startups. I also involved in founding a startup company. I also enjoy sharing my ideas through teaching. I hold many US and international patents in technical fields such as software development, mobile computing, IC design and communication receiver design. I am also a certified coach in Taekwondo in both UAST and AAU.
PreviewBounded Generic Type (7:57)
PreviewCase Study: Generic Sorting Program (5:08)
PreviewRaw Generic Containers (2:29)
PreviewWildcard Generics (3:24)
PreviewUnbounded Wildcard Generics (4:54)
PreviewSuper Wildcard Generics (5:58)
PreviewErasure and restriction on generics (Implementation Issues) (8:09)
PreviewCase Study: Generic Matrix (7:23)