
Java Generics and Collections
Fundamentals and Recommended Practices
O'Reilly (Publisher)
2nd Edition
Published on 1. July 2025
Book
Paperback/Softback
300 pages
978-1-0981-3672-7 (ISBN)
Description
Java Generics and Collections has been the go-to guide to generics for more than a decade. This second edition covers Java 21, providing a clear guide to generics from their most common uses to the strangest corner cases, giving you everything you need to know to use and write generic APIs effectively. It covers the collections library thoroughly, so you'll always know how and when to use each collection for any given task. And it explains stream processing, so you'll know which model to use and how they interoperate to get the best out of the platform library.
This indispensable guide covers:
Fundamentals of generics: type parameters and generic methods
Subtyping and wildcards
Generics and reflection
Design patterns for generics
Sets, queues, lists, maps, and their implementations
Concurrent programming and thread safety with collections
Performance of different collection implementations
Best practices for using and extending the Java collections framework
Design philosophy and comparison with other collections libraries
This indispensable guide covers:
Fundamentals of generics: type parameters and generic methods
Subtyping and wildcards
Generics and reflection
Design patterns for generics
Sets, queues, lists, maps, and their implementations
Concurrent programming and thread safety with collections
Performance of different collection implementations
Best practices for using and extending the Java collections framework
Design philosophy and comparison with other collections libraries
More details
Edition
2nd edition
Language
English
Place of publication
Sebastopol
United States
Target group
Professional and scholarly
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 231 mm
Width: 176 mm
Thickness: 21 mm
Weight
636 gr
ISBN-13
978-1-0981-3672-7 (9781098136727)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Previous edition

Maurice Naftalin | Philip Wadler
Java Generics and Collections
Book
11/2006
1st Edition
O'Reilly
€29.00
Article exhausted; check for reprint
Persons
Maurice Naftalin is Technical Director at Morningside Light Ltd., a software consultancy in the United Kingdom. Philip Wadler is Professor of Theoretical Computer Science at theUniversity of Edinburgh, where his research focuses on the design of programming languages. He is a co-designer of GJ, work that became the basis for generics in Sun's Java 5.0.