Some Examples of Generics in Java 1.5

By: Richard Wiener


The forthcoming releases of Java JDK v1.5 and C# v2.0 support generic classes (classes with generic type parameters) and generic methods. Furthermore, each also supports constrained generic types. Generic types in Java and C# introduce more expressiveness at the source code level and move type checking from run-time to compile-time when inserting objects into generic collections.

Cite as:

Richard Wiener, “Some Examples of Generics in Java 1.5”, Journal of Object Technology, Volume 3, no. 8 (September 2004), pp. 81-96, doi:10.5381/jot.2004.3.8.c8.

PDF | HTML | DOI | BiBTeX | Tweet this | Post to CiteULike | Share on LinkedIn

The JOT Journal   |   ISSN 1660-1769   |   DOI 10.5381/jot   |   AITO   |   Open Access   |    Contact