December 2015
Intermediate to advanced
1032 pages
29h 4m
English
In this chapter
• 8.1 Why Generic Programming?
• 8.2 Defining a Simple Generic Class
• 8.4 Bounds for Type Variables
• 8.5 Generic Code and the Virtual Machine
• 8.6 Restrictions and Limitations
Generic classes constitute the most significant change in the Java programming language since the 1.0 release. The addition of generics to Java SE 5.0 was the result of one of the first Java Specification Requests, JSR 14, that was formulated in 1999. The expert group spent about five years on specifications and test implementations.
Generic classes are desirable because they let you write code that is safer ...
Read now
Unlock full access