Publisher: O'Reilly Media Released: June 2004 Pages: 208
Java 5.0, code-named "Tiger", promises to be the most significant new version of Java since the introduction of the language. With over a hundred substantial changes to the core language, as well as numerous library and API additions, developers have a variety of new features, facilities, and techniques available. But with so many changes, where do you start? You could read through the lengthy, often boring language specification; you could wait for the latest 500 page tome on concepts and theory; you could even play around with the new JDK, hoping you figure things out--or you can get straight to work with Java 5.0 Tiger: A Developer's Notebook. This no-nonsense, down-and-dirty guide by bestselling Java authors Brett McLaughlin and David Flanagan skips all the boring prose and lecture, and jumps right into Tiger. You'll have a handle on the important new features of the language by the end of the first chapter, and be neck-deep in code before you hit the halfway point. Using the task-oriented format of this new series, you'll get complete practical coverage of generics, learn how boxing and unboxing affects your type conversions, understand the power of varargs, learn how to write enumerated types and annotations, master Java's new formatting methods and the for/in loop, and even get a grip on concurrency in the JVM. Light on theory and long on practical application, Java 5.0 Tiger: A Developer's Notebook allows you to cut to the chase, getting straight to work with Tiger's new features. The new Developer's Notebooks series from O'Reilly covers important new tools for software developers. Emphasizing example over explanation and practice over theory, they focus on learning by doing--you'll get the goods straight from the masters, in an informal and code-intensive style that suits developers. If you've been curious about Tiger, but haven't known where to start, this no-fluff, lab-style guide is the solution. |
-
Chapter 1 What's New? -
Working with Arrays -
Using Queues -
Ordering Queues Using Comparators -
Overriding Return Types -
Taking Advantage of Better Unicode -
Adding StringBuilder to the Mix -
Chapter 2 Generics -
Using Type-Safe Lists -
Using Type-Safe Maps -
Iterating Over Parameterized Types -
Accepting Parameterized Types as Arguments -
Returning Parameterized Types -
Using Parameterized Types as Type Parameters -
Checking for Lint -
Generics and Type Conversions -
Using Type Wildcards -
Writing Generic Types -
Restricting Type Parameters -
Chapter 3 Enumerated Types -
Creating an Enum -
Declaring Enums Inline -
Iterating Over Enums -
Switching on Enums -
Maps of Enums -
Sets of Enums -
Adding Methods to an Enum -
Implementing Interfaces with Enums -
Value-Specific Class Bodies -
Manually Defining an Enum -
Extending an Enum -
Chapter 4 Autoboxing and Unboxing -
Converting Primitives to Wrapper Types -
Converting Wrapper Types to Primitives -
Incrementing and Decrementing Wrapper Types -
Boolean Versus boolean -
Conditionals and Unboxing -
Control Statements and Unboxing -
Method Overload Resolution -
Chapter 5 varargs -
Creating a Variable-Length Argument List -
Iterating Over Variable-Length Argument Lists -
Allowing Zero-Length Argument Lists -
Specify Object Arguments Over Primitives -
Avoiding Automatic Array Conversion -
Chapter 6 Annotations -
Using Standard Annotation Types -
Annotating an Overriding Method -
Annotating a Deprecated Method -
Suppressing Warnings -
Creating Custom Annotation Types -
Annotating Annotations -
Defining an Annotation Type's Target -
Setting the Retention of an Annotation Type -
Documenting Annotation Types -
Setting Up Inheritance in Annotations -
Reflecting on Annotations -
Chapter 7 The for/in Statement -
Ditching Iterators -
Iterating over Arrays -
Iterating over Collections -
Avoiding Unnecessary Typecasts -
Making Your Classes Work with for/in -
Determining List Position and Variable Value -
Removing List Items in a for/in Loop -
Chapter 8 Static Imports -
Importing Static Members -
Using Wildcards in Static Imports -
Importing Enumerated Type Values -
Importing Multiple Members with the Same Name -
Shadowing Static Imports -
Chapter 9 Formatting -
Creating a Formatter -
Writing Formatted Output -
Using the format( ) Convenience Method -
Using the printf( ) Convenience Method -
Chapter 10 Threading -
Handling Uncaught Exceptions in Threads -
Using Thread-Safe Collections -
Using Blocking Queues -
Specifying Timeouts for Blocking -
Separating Thread Logic from Execution Logic -
Using Executor as a Service -
Using Callable Objects -
Executing Tasks Without an ExecutorService -
Scheduling Tasks -
Advanced Synchronizing -
Using Atomic Types -
Locking Versus Synchronization -
Colophon |
- Title:
- Java 5.0 Tiger: A Developer's Notebook
- By:
- Brett McLaughlin, David Flanagan
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Ebook
- Safari Books Online
- Print:
- June 2004
- Ebook:
- June 2009
- Pages:
- 208
- Print ISBN:
- 978-0-596-00738-6
- | ISBN 10:
- 0-596-00738-8
- Ebook ISBN:
- 978-0-596-55657-0
- | ISBN 10:
- 0-596-55657-8
|
-
Brett McLaughlin Brett McLaughlin is a bestselling and award-winning non-fiction author. His books on computer programming, home theater, and analysis and design have sold in excess of 100,000 copies. He has been writing, editing, and producing technical books for nearly a decade, and is as comfortable in front of a word processor as he is behind a guitar, chasing his two sons and his daughter around the house, or laughing at reruns of Arrested Development with his wife. Brett spends most of his time these days on cognitive theory, codifying and expanding on the learning principles that shaped the Head First series into a bestselling phenomenon. He's curious about how humans best learn, why Star Wars was so formulaic and still so successful, and is adamant that a good video game is the most effective learning paradigm we have. View Brett McLaughlin's full profile page. -
David Flanagan David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and children in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a blog at www.davidflanagan.com. View David Flanagan's full profile page. |
Colophon Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The Developer's Notebook series is modeled on the tradition of laboratory notebooks. Laboratory notebooks are an invaluable tool for researchers and their successors. The purpose of a laboratory notebook is to facilitate the recording of data and conclusions as the work is being conducted, creating a faithful and immediate history. The notebook begins with a title page that includes the owner's name and the subject of research. The pages of the notebook should be numbered and prefaced with a table of contents. Entries must be clear, easy to read, and accurately dated; they should use simple, direct language to indicate the name of the experiment and the steps taken. Calculations are written out carefully and relevant thoughts and ideas recorded. Each experiment is introduced and summarized as it is added to the notebook. The goal is to produce comprehensive, clearly organized notes that can be used as a reference. Careful documentation creates a valuable record and provides a practical guide for future developers. Reg Aubry was the production editor and copyeditor for Java 5.0 Tiger: A Developer's Notebook. Sada Preisch was the proofreader. Sada Preisch, Colleen Gorman, and Claire Cloutier provided quality control. Johnna and Tom Dinse wrote the index. Edie Freedman designed the cover of this book. Emma Colby produced the cover layout with QuarkXPress 4.1 using the Officina Sans and JuniorHandwriting fonts. Melanie Wang designed the interior layout, based on a series design by Edie Freedman and David Futato. This book was converted by Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Adobe Boton; the heading font is ITC Officina Sans; the code font is LucasFont's TheSans Mono Condensed, and the handwriting font is a modified version of JRHand made by Tepid Monkey Fonts and modified by O'Reilly. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Colleen Gorman. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Jack D. Herrington
August 2005
By Mike Loukides, Tim O'Reilly, Jerry Peek, et al.
October 2002
|
Customer Reviews
By Anonymous from Undisclosed By Etienne from Undisclosed By Jeanne from Undisclosed By Vladimir from Undisclosed
|
|
|