• Motivation for generics (5)
o Cleaner code, stronger compile-time typing, more expressive interfaces
Benefits of implementation by erasure: migration compatibility (15)
o Migration strategies: surface generification, stubs, wrappers
Problems with erasure (15)
o Array typing vs generic typing, converting a collection to an array
o Principle of Truth in Advertising*, Principle of Indecent Exposure*
Wildcard types: what they are and how to use them (10)
What next for generics? (5)
Experience: Participants should be familiar with the basic ideas of generics
Audience: Practising programmers working or soon to work with Java 5 or Java 6
|