Generics in the Java Programming Language

JDK 1.5 introduces several extensions to the Java programming language. One of them is the introduction of generics. This tutorial is intended to supplement ….

More PDF Content

Generics in the Java Programming Language, contents:

  1. Introduction
  2. Defining Simple Generics
  3. Generics and Subtyping
  4. Wildcards
    4.1 BoundedWildcards
  5. Generic Methods
  6. Interoperating with Legacy Code
    6.1 Using Legacy Code in Generic Code
    6.2 Erasure and Translation
    6.3 Using Generic Code in Legacy Code
  7. The Fine Print
    7.1 A Generic Class is Shared by all its Invocations
    7.2 CastsandInstanceOf
    7.3 Arrays
  8. Class Literals as Run-time Type Tokens
  9. More Fun with Wildcards
    9.1 WildcardCapture
  10. Converting Legacy Code to Use Generics
  11. Acknowledgements


Download Generics in the Java Programming Language pdf from, 23 pages, 69.99KB.