Generics and Collections


    •    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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.