Chapter 12. Generic Programming
In this chapter
• Defining a Simple Generic Class
• Generic Code and the Virtual Machine
• 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 and easier to read than code littered ...
Get Core Java Volume I--Fundamentals, 9th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.