UsefulLinks
Computer Science
Programming
By Language
Java Programming
1. Introduction to Java
2. Core Language Fundamentals
3. Object-Oriented Programming (OOP) in Java
4. Exception Handling
5. Java Collections Framework
6. Generics
7. Input/Output (I/O)
8. Concurrency and Multithreading
9. Modern Java Features (Java 8 and beyond)
10. Java Virtual Machine (JVM) Internals
11. Build Tools and Dependency Management
12. Testing in Java
13. Database Connectivity (JDBC)
6.
Generics
6.1.
Introduction to Generics
6.1.1.
Motivation for Generics
6.1.2.
Type Safety
6.1.3.
Eliminating Casts
6.2.
Generic Classes and Interfaces
6.2.1.
Defining Generic Types
6.2.2.
Using Type Parameters
6.2.3.
Multiple Type Parameters
6.3.
Generic Methods
6.3.1.
Method-Level Type Parameters
6.3.2.
Usage Examples
6.4.
Bounded Type Parameters
6.4.1.
Upper Bounds
6.4.2.
Lower Bounds
6.4.3.
Multiple Bounds
6.5.
Wildcards
6.5.1.
Upper Bounded Wildcards (? extends Type)
6.5.2.
Lower Bounded Wildcards (? super Type)
6.5.3.
Unbounded Wildcards (?)
6.6.
Type Erasure
6.6.1.
How Type Erasure Works
6.6.2.
Implications for Runtime
6.6.3.
Bridge Methods
Previous
5. Java Collections Framework
Go to top
Next
7. Input/Output (I/O)