Java Programming
Motivation for Generics
Type Safety
Eliminating Casts
Defining Generic Types
Using Type Parameters
Multiple Type Parameters
Method-Level Type Parameters
Usage Examples
Upper Bounds
Lower Bounds
Multiple Bounds
Upper Bounded Wildcards (? extends Type)
Lower Bounded Wildcards (? super Type)
Unbounded Wildcards (?)
How Type Erasure Works
Implications for Runtime
Bridge Methods
Previous
5. Java Collections Framework
Go to top
Next
7. Input/Output (I/O)