Cover of Java Generics and Collections

Java Generics and Collections

This comprehensive guide shows you how to master the most important changes to Java since it was first released. Generics and the greatly expanded collection libraries have tremendously increased the power of Java 5 and Java 6. But they have also confused many developers who haven't known how to take advantage of these new features.

Read more

Java Generics and Collectionscovers everything from the most basic uses of generics to the strangest corner cases. It teaches you everything you need to know about the collections libraries, so you'll always know which collection is appropriate for any given task, and how to use it.

Topics covered include:

Fundamentals of generics: type parameters and generic methods Other new features: boxing and unboxing, foreach loops, varargs Subtyping and wildcards Evolution not revolution: generic libraries with legacy clients and generic clients with legacy libraries Generics and reflection Design patterns for generics Sets, Queues, Lists, Maps, and their implementations Concurrent programming and thread safety with collections Performance implications of different collections Generics and the new collection libraries they inspired take Java to a new level. If you want to take your software development practice to a new level, this book is essential reading.

Philip Wadleris Professor of Theoretical Computer Science at the University 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.

Maurice Naftalinis Technical Director at Morningside Light Ltd., a software consultancy in the United Kingdom. He has most recently served as an architect and mentor at NSB Retail Systems plc, and as the leader of the client development team of a major UK government social service system.

"A brilliant exposition of generics. By far the best book on the topic, it provides a crystal clear tutorial that starts with the basics and ends leaving the reader with a deep understanding of both the use and design of generics."

Gilad Bracha, Java Generics Lead, Sun Microsystems

Subject
science
Audience
adult
Length
medium · 286 pages

Click a tag to see books like this one that share it.

Read it? Sign in to help tag it.

Liked Java Generics and Collections? Here’s where I’d start.

These suit anyone who liked Java Generics and Collections. Sign in and mark a few books for picks shaped around your own taste.

  1. Java Puzzlers: Traps, Pitfalls, and Corner Cases Shares Java, programming, tech
  2. Java 8 Lambdas: Pragmatic Functional Programming Shares Java, programming, tech
  3. Java Concurrency in Practice Shares Java, programming, tech
  4. Core Java, Volume II--Advanced Features Shares Java, programming, tech

“People who read Java Generics and Collections tend to reach for these next.”

  1. Thinking in Java
  2. Groovy in Action
  3. Camel in Action
  4. Programming in Scala

“If you want more of the same (science about technology), start with these.”

  1. C# in Depth
  2. Working Effectively with Legacy Code
  3. Test Driven Development: By Example
  4. The Clean Coder: A Code of Conduct for Professional Programmers

“If it was the Java that hooked you, try one of these.”

  1. Java SE 8 for the Really Impatient
  2. Java Performance on Multi-Core Platforms
  3. Java Performance: The Definitive Guide
  4. Core Java, Volume 1: Fundamentals

“These start from a similar idea, even if they go somewhere else with it.”

  1. Effective C# (Covers C# 4.0): 50 Specific Ways to Improve Your C# (Effective Software Development Series)
  2. Programming Language Pragmatics
  3. More Effective C#: 50 Specific Ways to Improve Your C#
  4. Modern C++ Design: Generic Programming and Design Patterns Applied