Generics Tutorial – 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

  1. Introduction 2
  2. Defining Simple Generics 3
  3. Generics and Subtyping 4
  4. Wildcards 5
    4.1 BoundedWildcards … 6
  5. Generic Methods 7
  6. Interoperating with Legacy Code 10
    6.1 Using Legacy Code in Generic Code … 10
    6.2 Erasure and Translation … 12
    6.3 Using Generic Code in Legacy Code … 13
  7. The Fine Print 14
    7.1 A Generic Class is Shared by all its Invocations … 14
    7.2 CastsandInstanceOf … 14
    7.3 Arrays … 15
  8. Class Literals as Run-time Type Tokens 16
  9. More Fun with Wildcards 18
    9.1 WildcardCapture … 20
  10. Converting Legacy Code to Use Generics 20
  11. Acknowledgements 23
Download Generics Tutorial - Generics in the Java Programming Language pdf from www-plan.cs.colorado.edu, 23 pages, 69.99KB.
Related Books

Leave a Reply