CHAPTER 6

image

Generics and Collections

9781430247647_unFig06-01.jpg

Every non-trivial Java application makes use of data structures and algorithms. The Java collections framework provides a large set of readily usable general-purpose data structures and algorithms. These data structures and algorithms can be used with any suitable data type in a type-safe manner; this is achieved through the use of a language feature known as generics.

Since data structures and algorithms are implemented using generics, these two complementary topics are combined together as a single topic ...

Get Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide 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.