By Maurice Naftalin, Philip Wadler
This finished advisor exhibits you the way to grasp the main importantchanges to Java because it was once first published. Generics and the greatlyexpanded assortment libraries have enormously elevated the ability ofJava five and Java 6. yet they've got additionally stressed many builders whohaven't identified tips to reap the benefits of those new features.
Java Generics and Collections covers every little thing from the mostbasic makes use of of generics to the strangest nook circumstances. It teaches youeverything you must learn about the collections libraries, so you'llalways comprehend which assortment is acceptable for any given activity, andhow to exploit it.
Topics coated include:
- Fundamentals of generics: sort parameters and standard methods
- Other new positive aspects: boxing and unboxing, foreach loops, varargs
- Subtyping and wildcards
- Evolution no longer revolution: general libraries with legacy consumers andgeneric consumers with legacy libraries
- Generics and reflection
- Design styles for generics
- Sets, Queues, Lists, Maps, and their implementations
- Concurrent programming and thread protection with collections
- Performance implications of alternative collections
Generics and the recent assortment libraries they encouraged take Java to anew point. which will take your software program improvement perform toa new point, this booklet is key reading.
Philip Wadler is Professor of Theoretical computing device technology at theUniversity of Edinburgh, the place his study specializes in the layout ofprogramming languages. he's a co-designer of GJ, paintings thatbecame the root for generics in Sun's Java 5.0.
Maurice Naftalin is Technical Director at Morningside gentle Ltd., a software program consultancy within the uk. He has such a lot lately served as an architect and mentor at NSB Retail platforms plc, and because the chief of the customer improvement staff of an enormous united kingdom govt social provider system.
"A extraordinary exposition of generics. through a long way the simplest ebook on thetopic, it offers a crystal transparent instructional that begins with thebasics and ends leaving the reader with a deep knowing of boththe use and layout of generics."
Gilad Bracha, Java Generics Lead, sunlight Microsystems