Overview

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 ...

See more details below
Java Generics and Collections

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

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.


Java Generics and Collections covers 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 Wadler is 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 Naftalin is 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

This book, written by one of the designers of generics, is a thorough explanation of how to use generics, and particularly, the effect this facility has on the way developers use collections.

Read More Show Less

Product Details

  • ISBN-13: 9780596551506
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 10/17/2006
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 286
  • Sales rank: 669,275
  • File size: 2 MB

Table of Contents

1 Introduction 3
2 Subtyping and wildcards 15
3 Comparison and bounds 31
4 Declarations 53
5 Evolution, not revolution 61
6 Reification 75
7 Reflection 99
8 Effective generics 113
9 Design patterns 127
10 The main interfaces of the Java collections framework 151
11 Preliminaries 153
12 The collection interface 167
13 Sets 177
14 Queues 197
15 Lists 219
16 Maps 229
17 The collection class 247
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Anonymous

    Posted December 24, 2006

    HOW ABOUT A CUP OF HOT JAVA?

    Do you wish to process lists? If you do, then this book is for you. Authors Maurice Naftalin and Philip Wadler, have done an outstanding job of writing a book that shows you how to master the most important changes to Java since it was first released. Naftalin and Wadler, begin with an overview of generics and other new features in Java 5. Then, the authors review how subtyping works and explain how wildcards let you use subtyping in connection with generics. Next, they describe how generics works with the Comparable interface, which requires a notion of bounds on type variables. They also look at how generics work with various declarations. The authors continue by explaining how to evolve legacy code to exploit generics. Then, they explain how the same design that leads to ease of evolution also necessarily leads to a few rough edges in the treatment of casts, exceptions and arrays. Next, they explain new features that relate generics and reflection. The authors also give advice on how to use generics effectively in practical coding. They continue by looking at how generics affect well known design patterns. Then, the authors give an overview of the Framework and then look in detail at each of the main interfaces and the standard implementation of them. Finally, the authors look at the special-purpose implementation and generic algorithms provided in the Collections class. This most excellent book covers everything from the most basic uses of generics to the strangest collections cases. Perhaps more importantly, this book shows you everything you need to know about the collections libraries!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted February 5, 2012

    No text was provided for this review.

  • Anonymous

    Posted October 20, 2010

    No text was provided for this review.

Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)