Java Generics and Collections
Publisher: O'Reilly Media
Released: October 2006
Pages: 286
Description
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Recently Viewed
Head First JavaScript
By Michael Morrison
December 2007
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
C# 3.0 Design Patterns
By Judith Bishop
December 2007
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
Running Boot Camp
By Chuck Toporek
April 2006
Ebook: $7.99
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreilly Java Generics and Collections
 
4.8

(based on 4 reviews)

Ratings Distribution

  • 5 Stars

     

    (3)

  • 4 Stars

     

    (1)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

Reviews

Reviewed by 4 customers

Sort by

Displaying reviews 1-4

Back to top

 
5.0

Superb

By Wendell Murray

from Southeastern Pennsylvania

About Me Designer, Developer

Verified Reviewer

Pros

  • Accurate
  • Concise
  • Easy to understand
  • Helpful examples
  • Well-written

Cons

    Best Uses

    • Expert
    • Intermediate

    Comments about oreilly Java Generics and Collections:

    The O'Reilly series of books on Java and Java-related topics is outstanding. This is one more outstanding book in that series. This book is well-organized, the material is well-presented and all details - many of which I beforehand was only vaguely or not all aware of - are included.

    Noteworthy among various other features is the explanation of terms such as "contract" which, as the authors note, is rarely defined but widely used in texts on Java. The authors note on page 157 (Chapter 11, section 4 Contracts) "you are likely to come across the term contract, often without any accompanying explanation". True enough, so the authors proceed to give a clear explanation of what "contract" means in regard to software.

    This is typical of the excellent exposition of some complicated details in the functioning of generics and of the Collections framework in general.

    (2 of 2 customers found this review helpful)

     
    5.0

    Finally, A Book Devoted To Generics And Collections

    By Dave Walz-Burkett

    from Undisclosed

    Comments about oreilly Java Generics and Collections:

    Ever since the release of Java 5, I've been keeping my eyes open for a book that describes what I believe to be the most powerful new feature of Java - generics. The new book published by O'Reilly, Java Generics and Collections covers the topic in spades. As a bonus, the second half of this book examines the Java Collections Framework. Since the Collections Framework was rewritten to incorporate the use of generics, it makes perfect sense for the authors to spend a reasonable amount of time describing the new interfaces.

    A brief introduction highlights the use of generics, autoboxing, foreach loops, generic methods and varargs. The examples are written using the Collections Framework. Subtyping and the use of wildcards follow the introduction and begin to show the real power of generics.

    Getting past the basics, a chapter devoted to the Comparable and Comparator interfaces describes some very useful concepts, such as how to use the Comparable interface to find the minimum or maximum element in a collection. The use of enumerated types is briefly covered here, as well as the concepts of multiple bounds, bridges and covariant overriding.

    A chapter describing how to declare a generic class helps you build your own classes. Following that is a useful chapter that describes how the design of generics is evolutionary, not revolutionary. It details how generics in Java 5 allow you to gradually migrate your legacy code, rather than replace it all at once.

    If you use generic types in casts, instance testing, exceptions or arrays, a chapter on reification warns you of rough edges and limitations you may find and describes some workarounds. How generics changes reflection is also covered.

    The last two chapters of the first half of the book describe how to use generics effectively in your code and provide samples of how implementations of select design patterns can take advantage of generics.

    The second half of the book, which dives into the Collections Framework, starts with a quick chapter called 'Preliminaries' that spends time discussing underlying concepts, such as the Iterable interface. Thread safety issues are covered in this chapter as well. Thread-safe concurrent collections were introduced in Java 5 and their use, as compared with synchronized collections is also discussed.

    The Collection interface is given its own chapter, which is important considering that it defines functionality common to any type of collection other than maps. Following are chapters describing sets, queues and lists. The Map interface also warrants its own chapter, in which the available methods and the various map implementations are discussed. The comparative performance of different set, queue, list and map implementations is shown in tables at the end of each chapter.

    Following the Collection and Map interface chapters is the final chapter which describes the Collections class in detail. The Collections class contains static methods that operate on collections or return them.

    I found the code and diagrams in this book very easy to understand and a great resource when trying to decide which collection or map implementation to use for a specific problem.

    Once you learn how to take advantage of generics, you'll begin to write more useful, reusable code. This book now occupies a space on my shelf next to my Algorithms and Data Structures books.

    (0 of 2 customers found this review helpful)

     
    5.0

    Egyptian JUG Review

    By Ahmed Hashim

    from Undisclosed

    Comments about oreilly Java Generics and Collections:

    Reviewd By Islam Mahgoub (http://www.egjug.org/user/771)

    In the past, I wondered a lot about Java Generics, and how

    could I use it, how it's implemented in Java, what goes behind the scenes, How

    could I evolve my code to use Java Generics, what about the differences between

    Java Generics and C++ templates, what does the phrase "Java generics are

    defined by erasure" mean, and a lot of other questions concerning Java recently

    added features to support generics.

    This book was recommended to me by a friend, really it's a

    great recommendation, I have found answers to the most of my questions concerning

    Java Generics and Collection framework.

    At the end, I think this book is suitable for both, a Java

    developer who know nothing about Java Generics and Collection and wants to

    start his journey with Java Generics and Collection framework, and also a Java

    expert who already has a good knowledge about Java Generics and Collection

    framework, but wants a more deep understanding of this topic, and wants to know

    how to use this feature in a professional way, and what goes behind the scenes.

    Read the complete review. (At the end, I think this book is suitable for both, a Java

    developer who know nothing about Java Generics and Collection and wants to

    start his journey with Java Generics and Collection framework, and also a Java

    expert who already has a good knowledge about Java Generics and Collection

    framework, but wants a more deep understanding of this topic, and wants to know

    how to use this feature in a professional way, and what goes behind the scenes.

    )

    (0 of 1 customers found this review helpful)

     
    4.0

    Greenvile Java Users Group - Moderator

    By John Yeary

    from Undisclosed

    Comments about oreilly Java Generics and Collections:

    The Java Generics book provides an in-depth analysis of the new Generics and Collections APIs in Java 5 and 6. The book provides a level of detail on this new technology that can not be found elsewhere. This book is generally not for a novice programmer due to the level of architectural details and theory. It provides a seasoned programmer with a comprehensive examination of why and how the Generics and Collections APIs were modified, as well as, the design decisions and impact. The book provides the programmer with the information they need to make informed decisions on which type of Collection to use, and the associated pitfalls based on design decisions.

    The only issue I found with the book was that it did not provide enough concrete examples. The code was provided generally in code snippets which do not provide enough detail.

    The book is a definite choice for the advanced Java programmer and architect. If you are serious about learning these new technologies: this is the book to get.

    Displaying reviews 1-4

    Back to top

     
    Buy 2 Get 1 Free Free Shipping Guarantee
    Buying Options
    Save a Tree - Go Digital  what is this?
    Ebook: $27.99
    Formats: APK, DAISY, ePub, Mobi, PDF
    Print & Ebook: $38.49
    Print: $34.99