11

Generics and Collections

CERTIFICATION OBJECTIVES

    •    Create a Generic Class

    •    Use the Diamond Syntax to Create a Collection

    •    Analyze the Interoperability of Collections that Use Raw and Generic Types

    •    Use Wrapper Classes and Autoboxing

    •    Create and Use a List, a Set, and a Deque

    •    Create and Use a Map

    •    Use java.util.Comparator and java.lang.Comparable

    •    Sort and Search Arrays and Lists

    image  Two-Minute Drill

Q&A Self Test

Generics were the most talked about feature of Java 5. Some people love ‘em, some people hate ‘em, but they’re here to stay. At their simplest, they can help make ...

Get OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804) 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.