Java Generics - Tutorial
In J2SE 5.0 the language as well as the platform libraries were extended
to support and use generics types and methods.The use of generics in numerous
core library packages (such as
java.util
,
java.ref
,
java.reflect
,
etc.) affects almost every Java programmer, who uses Java 5.0.
In this tutorial we discuss all language features related to generics,
such as type parameters and wildcards along with their bounds, compilation
issues such as type erasure and type inference, compatibility between generic
and non-generic code, and many more. In particular, we take a look at programming
idioms using reflection like supplying type information in form of
Class<T>
objects, sophisticated API design using wildcards as well as porting legacy
code to Java 5.0. |
|
PREREQUISITES
|
|
Level:
|
intermediate / advanced |
Duration:
|
1.5 - 3.0 hours |
Prerequisites:
|
Attendants should be familiar with Java. |
Presented at:
|
OOP 2004
,
Munich, Germany, January, 2004
ACCU Conference
, Oxford,
UK, April 2004
JAX 2004
, Frankfurt, Germany,
May 2004
OOPSLA 2004
, Vancouver,
BC, Canada, October 2004
JAX 2005
, Frankfurt, Germany,
May 2005
JavaOne 2005
,
San Francisco, CA, June 2005
JUGS Event
, Zürich,
Switzerland, June 2006
JUG Meeting Düsseldorf
,
Düsseldorf, Germany, February 2007
SD Best Practices
,
Moscow, Russia, April 2007
JFS 2007
, Stuttgart,
Germany, July 2007
Jazoon 2008
,Zürich,
Switzerland, June 2008 |
If you are interested to hear more about this
and related topics you might want to check out the following seminar or
skim through some further reading:
|
|
|
Seminars
|
Articles
|
Slides
|
|