Java Generics and Collections

  Author:    Philip Wadler, Maurice Naftalin
  ISBN:    0596527756
  Sales Rank:    60215
  Published:    2006-08-01
  Publisher:    O'Reilly Media
  # Pages:    240
  Binding:    Paperback
  Avg. Rating:    5.0 based on 21 reviews
  Used Offers:    9 from $19.47
  Amazon Price:    $23.09
  (Data above last updated:  2008-11-29 05:25:20 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
Java Generics and Collections
  
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

                  Reader Reviews 1 - 23 of 23                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
10-17-08 5 1\1
(Hide Review...)  Explains the inexplicable
Reviewer Permalink
There are some difficult issues with Java Generics. This book does an excellent job explaining them. It also provides a good guide when to use generics, its limitations, and the new limitations that it introduces for arrays.
(Review Data Last Updated: 2008-11-30 06:25:00 EST)
10-10-08 4 (NA)
(Hide Review...)  Very Thorough, Maybe Too Much So
Reviewer Permalink
This book has very in-depth information on Java generics, but some of the details are just not that interesting to the practical developer. It helps you gain a deeper understanding, but you probably want to first know what generics are, how to use them, when to use them, and best practices for using them before you get into the nitty-gritty of how the compiler represents them in byte code and what "reification" means.

I also found it strange that symbols like T and E that are not familiar to pre Java 1.5 developers are bandied about without first telling you what they mean.
(Review Data Last Updated: 2008-10-17 07:11:10 EST)
06-19-08 5 0\1
(Hide Review...)  Excellent Book I wish i had it 10 yrs ago.
Reviewer Permalink
This is excellent book, i really wish i had this book 10 yrs ago, excellent verbiage and great concepts.
(Review Data Last Updated: 2008-10-11 05:56:59 EST)
05-08-08 5 (NA)
(Hide Review...)  Excellent coverage of generics
Reviewer Permalink
The authors provide detailed examples of capabilities provided by Generics. There are plenty of examples to illustrate various concepts. And many more examples which put them all together to show how they can be used to write full fledged OOPrograms. Its admirable how a non-trivial topic like Generics has been explained in a simple and succinct style. The collections coverage is good, but not as great as the Generics coverage.
(Review Data Last Updated: 2008-06-20 04:46:59 EST)
04-26-08 5 (NA)
(Hide Review...)  Excellent Book on Generics and Collections
Reviewer Permalink
This a very good book on Collections and Generics. It is very readable and very well laid out and organized. Besides treating Generics thoroughly it also treats threadsafe collections very well too.

For these reasons I highly recommend this book.
(Review Data Last Updated: 2008-05-17 04:49:20 EST)
03-11-08 3 1\1
(Hide Review...)  Average, Nothing Exciting... not much more than its online alternative...
Reviewer Permalink
It's a decent reference and a great read to go over generics and the collections framework. But don't get me wrong, it's nothing you can't get from just reading the Sun-provided API documentation or tutorials covering the topics.

It's comprehensive, sure... but the examples lean to near overkill on each topic in some areas. In other areas, there just isn't enough information or example code to really drive home the ideas.

It's average and worth the read. Not worth keeping around, though. It's one of those "read-once-then-give-it-to-a-friend" books. Like I said, though: you should definitely read this book if you're looking for more information on these topics. You'll just find yourself hitting resources online for more information in areas you are particularly interested in (concurrency w/ collections, for example).
(Review Data Last Updated: 2008-04-27 08:43:54 EST)
02-21-08 5 (NA)
(Hide Review...)  Java Generics and Collections and Bears, Oh My!
Reviewer Permalink
Generics in Java have some non-trivial aspects, and this book does a great job of explaining when you need to use what in a comprehensive and concise manner. I thought I knew Generics, now I know I didn't... If List looks strange to you, then this book is for you.

Not sure why half of the book is devoted to Collections (rather than having that be a separate book), but in any case these chapters are also very well written. There are simple explanations how to choose the most suitable Collection classes for any given situation.

The Collections discussion touches the issue of multi-threaded programming. I almost expect the next edition to be titled "Java Generics and Collections and Concurrency"...
(Review Data Last Updated: 2008-03-11 22:51:04 EST)
10-04-07 5 (NA)
(Hide Review...)  fabulous and concise
Reviewer Permalink
I recently went from about 0 Java experience to it being the only language (virtually) at a brand new job. I came from a heavy C/C++(STL)/Perl background (12 years).

I bought about 6 Java books including the Sun ones (language spec + "effective programming", both great).

This has been most useful as it's relatively short, covers up to Java 6 (sadly work we only use 5 as we're on mac os X). but it's like a quick ref to the "STL" of Java, at least how i see it .

great boook
(Review Data Last Updated: 2008-02-20 21:31:08 EST)
08-18-07 5 (NA)
(Hide Review...)  Wonderful Book on Generics and Collections With Java Focus
Reviewer Permalink
'Java Generics and Collections' by Maurice Naftalin in a fantastic book focussed on this interesting topic of generics and collections with Java as the main language to explore these programming concepts. At nearly 300 pages in length, this book has plenty of meat and content within. I love the new font look in this O'Reilly book and was impressed all throughout while perusing this book. 15 chapters of content are seen when you pull back the cover and start reading. This book 'could' be for the most novice of programmers but it's better suited towards a more experienced programmer that is looking to expand their knowledge and become a BETTER developer.

If you want to learn about generics and collections for Java or any language, this is a great reference to learn and expand your development skillset with best practices in mind.

**** HIGHLY RECOMMENDED
(Review Data Last Updated: 2007-10-05 08:43:19 EST)
08-12-07 5 (NA)
(Hide Review...)  Finally, A Book Devoted To Generics And Collections
Reviewer Permalink
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.
(Review Data Last Updated: 2007-08-17 22:56:12 EST)
08-09-07 3 (NA)
(Hide Review...)  Oddly dull for an interesting topic; not Wadler's best
Reviewer Permalink
I've read many of Wadler's whitepapers (usually on Haskell), and have always found him interesting. That's why this book was a bit of a surprise; parts of it were very hard to get through. Some of the examples (mostly the relentless focus on the Collections framework) were, frankly, dull. Much of the writing was repetitive. And many times the authors referred to another complex or difficult concept by section number, rather than briefly summarizing the issue. Apparently they were trying to be concise, but they succeeded in being cryptic.
(Review Data Last Updated: 2007-08-13 17:51:43 EST)
05-04-07 5 (NA)
(Hide Review...)  Beyond the simple T.class question!
Reviewer Permalink
"Why cant I instantiate T?"
"Why cant I use the T.class literal?"
"Why cant I call a parametrized method if the"

If you are looking answers for these questions, this book will be an overkill! It does not only covers these basics, as it goes much over to advanced topics. Erasure, reification, reflection, java.util classes design, and a "effective generics" chapter, much like Joshua Bloch's book.

Ever wondered about the strange Collections methods signatures? A beautiful and detailed explanation about the max method signature:

public static
(Review Data Last Updated: 2007-08-09 09:23:52 EST)
04-20-07 1 6\7
(Hide Review...)  Save your money and don't by this book unless you are a PhD
Reviewer Permalink
I'm almost finished with the first half of the book (the generics half) and you would think after reading this part of the book that it was written by a Professor of Theoretical Computer Science. Wait a minute, it was written by a Professor of Theoretical Computer Science! If you can hold your own in a discussion of java generics with a Professor of Theoretical Computer Science, you might want to give the book a look through at your local bookstore, but most normal people/programmers should look elsewhere to learn about java generics.
I'm cautiously opptomistic the 2nd half of the book about collections will be better. It can't be any worse than the first half.
(Review Data Last Updated: 2007-07-02 15:17:49 EST)
04-19-07 5 (NA)
(Hide Review...)  To the point and Practical
Reviewer Permalink
This book has everything that you would need to know about Generics. Cutting it short, you"ll be an expert once you finish this book. Some portions (especially the beginning part) are really fast paced, but slow enough to grasped, which is why i said practical in my title. As a Developer for years, i recommend this book for anyone who's looking for quick and dirty book on generics, While quick and dirty sounds superficial, but believe me this book covers everything you'd ever need to know about generics (So yea all those purists can smile now :) ).

When i first saw generics in Java i was befuddled to be honest, (to be erm, brutally honest, disappointed, since they are NOT like what really generics are capable, uh yea the Backwards compatibility logic..whatever). But still generics can considerably improve already existing code. There's a lot stuff out there with those list iterations and those nasty casts that you have to make... OK Enough if justification of Generics in Java, which btw isnt necessary, since your looking at this book anyways.

Book has 2 sections
1.) Generics (will explain everything about generics, with Design patterns that can be used and so forth).

2.)Collections Framework (Quite intense, explains everything sufficiently)


All in all, a great Buy.

Thanks
Anirudh
(Review Data Last Updated: 2007-07-02 15:17:49 EST)
02-06-07 4 4\4
(Hide Review...)  Good, but could be better
Reviewer Permalink
Java generics are a welcome and important addition to the Java language, but because of their Erasure based implementation, they are somewhat limited and confusing to use.

This book is good in that it does cover many of the issues, and some interesting applications, but is I think limited in both explanations, and examples. Their section on Generics and Design patterns is a welcome one, but very short, and not very long on rationale or depth on other applications. If the examples they show is the only impact of generics on design patterns, something is wrong!

The standard Generics tutorials by Bracha and Langer, and the IBM DeveloperWorks series by Allen are more complete, and more descriptive, and free! I found the lumping of collections together with Generics ok, but a bit indicative that they ran out of real generics material. They are also IMHO a bit defensive on the long contested Erasure approach, but do explain their viewpoint well. They fault the C# and C++ approaches too quickly, noting the problems but not the corresponding solutions provided. Hopefully next versions of Java will (soon) provide reified versions of generics, it looks like it is in process now.

I did think it a worthwhile read, but not as much as expected.
(Review Data Last Updated: 2007-07-02 15:17:49 EST)
02-01-07 4 1\1
(Hide Review...)  Ready to Learn Generics and Collections?
Reviewer Permalink
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.
(Review Data Last Updated: 2007-07-02 15:17:49 EST)
12-25-06 5 (NA)
(Hide Review...)  HOW ABOUT A HOT CUP OF JAVA ?
Reviewer Permalink
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!
(Review Data Last Updated: 2007-07-02 15:17:49 EST)
12-24-06 5 (NA)
(Hide Review...)  HOW ABOUT A HOT CUP OF JAVA ?
Reviewer Permalink
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!
(Review Data Last Updated: 2007-02-01 13:49:40 EST)
12-17-06 5 1\1
(Hide Review...)  Everything you ever wanted to know about collections and generics...
Reviewer Permalink
This is one of the most in-depth books on the Java topics of generics and collections... Java Generics and Collections, by Maurice Naftalin and Philip Wadler. It covers the gamut from the basics to advanced...

Contents:
Part 1 - Generics: Introduction; Subtyping and Wildcards; Comparison and Bounds; Declarations; Evolution, Not Revolution; Reification; Reflection; Effective Generics; Design Patterns
Part 2 - Collections: The Main Interfaces of the Java Collections Framework; Preliminaries; The Collection Interface; Sets; Queues; Lists; Maps; The Collections Class; Index

There have been quite a few books out that deal with the new Java 5.0 features, of which generics and collections are the featured items. But few go past the basics and common usage. Naftalin and Wadler devote this entire book to just those new features, which means they can spend a lot more time diving into the guts of how they work. There are nice "before generics" and "after generics" comparisons in the one section, so you can see how current coding styles can be enhanced and modified. I also liked how some basic design patterns were used to show how generics can be incorporated into standard designs. The collections material is just as helpful. Each type of collection is covered in detail, both for the reference on how it's coded as well as diagrams to show the architecture of that type of list. Again, when you get done with the section, there shouldn't be too many questions and issues surrounding collections that you can't answer or at least figure out.

Solid material, and definitely a title you'll want to have around when you start playing around with generics and collections...
(Review Data Last Updated: 2006-12-25 13:35:42 EST)
12-11-06 5 (NA)
(Hide Review...)  A 'must' for any working Java programmer.
Reviewer Permalink
Java's had many changes since its initial release and programmers would find it easy to fall behind on all these new collection libraries, so Java Generics and Collections is an essential tool for any programmer working in Java lready, who would keep up with the design and nature of generics. From parameter basics and new features to using wildcards, generic libraries and understanding performance implications of their different options, Java Generics and Collections is a 'must' for any working Java programmer.

Diane C. Donovan
California Bookwatch
(Review Data Last Updated: 2006-12-17 13:34:24 EST)
12-03-06 5 1\1
(Hide Review...)  Excellent explanation of Java generics and its usage
Reviewer Permalink
The intent of Generics is make your Java code type-safer. While Java is a strongly typed language, it lacks type-safety when it comes to using collections. Generics were added to the Java programming language in 2004 as part of J2SE 5.0. Unlike C++ templates, generic Java code generates only one compiled version of a generic class. Generic Java classes can only use object types as type parameters -- primitive types are not allowed. Thus a List of type Integer, which uses a primitive wrapper class is legal, while a List of type int is not legal.

Part I of this book provides a thorough introduction to generics. Generics are a powerful, and sometimes controversial, new feature of the Java programming language. This part of the book describes generics, using the Collections Framework as a source of examples.

The first five chapters focus on the fundamentals of generics. Chapter 1 gives an overview of generics and other new features in Java 5, including boxing, foreach loops, and functions with a variable number of arguments. Chapter 2 reviews how subtyping works and explains how wildcards let you use subtyping in connection with generics. Chapter 3 describes how generics work with the Comparable interface, which requires a notion of bounds on type variables. Chapter 4 looks at how generics work with various declarations, including constructors, static members, and nested classes. Chapter 5 explains how to evolve legacy code to exploit generics, and how ease of evolution is a key advantage of the design of generics in Java. Once you have these five chapters under your belt, you will be able to use generics effectively in most basic situations.

The next four chapters treat advanced topics. Chapter 6 explains 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. The fit between generics and arrays is the worst rough corner of the language, so two principles are formulated to help work around the problems. Chapter 7 explains new features that relate generics and reflection, including the newly generified type "Class T" and additions to the Java library that support reflection of generic types. Chapter 8 contains advice on how to use generics effectively in practical coding. Checked collections, security issues, specialized classes, and binary compatibility are all considered. Chapter 9 presents five extended examples, looking at how generics affect five well-known design patterns: Visitor, Interpreter, Function, Strategy, and Subject-Observer. The following is a list of chapters in part one:

Chapter 1. Introduction
Chapter 2. Subtyping and Wildcards
Chapter 3. Comparison and Bounds
Chapter 4. Declarations
Chapter 5. Evolution, Not Revolution
Chapter 6. Reification
Chapter 7. Reflection
Chapter 8. Effective Generics
Chapter 9. Design Patterns

Part II is about the Java Collections Framework, which is a set of interfaces and classes in the packages java.util and java.util.concurrent. They provide client programs with various models of how to organize their objects, and various implementations of each model. These models are sometimes called abstract data types, and they are needed because different programs need different ways of organizing their objects. In one situation, you might want to organize your program's objects in a sequential list because their ordering is important and there are duplicates. In another, a set might be the right data type because now ordering is unimportant and you want to discard the duplicates. These two data types and others are represented by different interfaces in the Collections Framework, and there are examples of their use in chapter 10. However, none of these data types has a single "best" implementation--that is, one implementation that is better than all the others for all the operations. For example, a linked list may be better than an array implementation of lists for inserting and removing elements from the middle, but much worse for random access. So choosing the right implementation for a program involves knowing how it will be used as well as what is available.

This part of the book starts with an overview of the Framework and then looks in detail at each of the main interfaces and the standard implementations of them. Finally the book examines the special-purpose implementation and generic algorithms provided in the Collections class. The following is a list of chapters in part two:

Chapter 10. The Main Interfaces of the Java Collections Framework
Chapter 11. Preliminaries
Chapter 12. The Collection Interface
Chapter 13. Sets
Chapter 14. Queues
Chapter 15. Lists
Chapter 16. Maps
Chapter 17. The Collections Class

Overall, this is a very good book on the subject of Java generics, and I highly recommend it.
(Review Data Last Updated: 2006-12-11 12:51:44 EST)
11-07-06 5 1\1
(Hide Review...)  Detailed and comprehensive
Reviewer Permalink
I had not found (until now) a book that went into sufficient detail on the features/usefulness/patterns/etc around support for generics in Java 5. Plenty of discussion about generics, general overviews and examples, but nothing comprehensive. This book goes into the detail I was looking for. It includes lots of code examples and charts detailing Java Generics and the Java Collections framework.

I liked the layout of the book, it builds concept upon concept as the book progresses - but can just as easily be used as a reference book. I appreciated the notes describing what the compiler does behind the scenes for the various concepts. I also found the suggested principles and design patterns when using generics very useful.

I'd highly recommend this book if you're looking into generics in general, or even just using the Java Collections framework. It includes a little information about some changes/enhancements coming in Java 6 as well.
(Review Data Last Updated: 2006-12-03 13:06:14 EST)
11-04-06 5 (NA)
(Hide Review...)  Much-needed impressive coverage of these two topics
Reviewer Permalink
I've been looking for a long time for a good book covering in-depth the subject of collections since Sun introduced the Java Collections API. There were high-priced generalized books about algorithms in general, and data structures textbooks that seemed to get lukewarm receptions. I've used Collections a lot and over time with repeated usage I learned the mechanics and when to use which type of Collection, but especially with the advent of Java Generics (which intertwines heavily with any sophisticated usage of Collections in Java 5), I wanted something with more extensive coverage.

This book really fits the bill. Its explanations of the semantics and functionality of the different Collections classes are simple but never pedantic. It would be useful for both experienced developers and newbies.

- If you're neck deep in Java 5 development and using Generics in your own code, this will fill in a lot of the gaps, showing how you can write your own classes that make use of Generics (including usage of "super" and "extends notations for defined types), and explaining the error messages you may see involving "erasure" when attempting to instantiate variables that are defined with generics.

- If you're a long time Java developer who's still using Hashtables, Vectors and Enumerations for everything, this book covers the whys and hows of switching to the Collections interfaces and implementations, advocating "evolution not revolution"--e.g., don't rewrite all your underlying code just to replace all Hashtables with HashMaps, or even to replace raw Collections with generics-savvy ones, but write new code to be agnostic about whether legacy implementations or generic-savvy implementations are used.

- If you're more a newbie to all this, the book covers data structures, algorithms, and O-notation--not at textbook or classroom level, but enough to explain the concepts. The book also covers not only how one MIGHT write the provided implementations of Collections interfaces but how they were written by Sun (and how they weren't written, too).

The factory methods in the Collections utility class for unmodifiable, synchronized and checked Collections are also covered.

It might have been helpful to include more sophisticated examples of custom generics-savvy classes (e.g., how to write your own generic factory class) but all in all this book was very impressive. It would be useful for experienced Java 5 developers, experienced pre-Java-5 Java developers, experienced legacy (pre-Collections-API) Java developers, and junior Java developers taking the leap into Generics and Collections.
(Review Data Last Updated: 2006-11-07 09:46:09 EST)
  
                  Reader Reviews 1 - 23 of 23                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)