Buying Options
Java 5.0 Tiger: A Developer's Notebook
Print $34.99
Add to Cart
Print+Ebook $38.49
Add to Cart
Ebook $27.99
(PDF)
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £22.99
Add to Cart
What is this?
Description
This no-nonsense, guide by bestselling Java authors Brett McLaughlin and David Flanagan jumps right into Tiger. Using the task-oriented format of this new series, you'll get complete practical coverage of generics, boxing and unboxing, varargs, enums, annotations, formatting, the for/in loop, concurrency, and more.
Full Description
Table of Contents
  1. Chapter 1 What's New?

    1. Working with Arrays

    2. Using Queues

    3. Ordering Queues Using Comparators

    4. Overriding Return Types

    5. Taking Advantage of Better Unicode

    6. Adding StringBuilder to the Mix

  2. Chapter 2 Generics

    1. Using Type-Safe Lists

    2. Using Type-Safe Maps

    3. Iterating Over Parameterized Types

    4. Accepting Parameterized Types as Arguments

    5. Returning Parameterized Types

    6. Using Parameterized Types as Type Parameters

    7. Checking for Lint

    8. Generics and Type Conversions

    9. Using Type Wildcards

    10. Writing Generic Types

    11. Restricting Type Parameters

  3. Chapter 3 Enumerated Types

    1. Creating an Enum

    2. Declaring Enums Inline

    3. Iterating Over Enums

    4. Switching on Enums

    5. Maps of Enums

    6. Sets of Enums

    7. Adding Methods to an Enum

    8. Implementing Interfaces with Enums

    9. Value-Specific Class Bodies

    10. Manually Defining an Enum

    11. Extending an Enum

  4. Chapter 4 Autoboxing and Unboxing

    1. Converting Primitives to Wrapper Types

    2. Converting Wrapper Types to Primitives

    3. Incrementing and Decrementing Wrapper Types

    4. Boolean Versus boolean

    5. Conditionals and Unboxing

    6. Control Statements and Unboxing

    7. Method Overload Resolution

  5. Chapter 5 varargs

    1. Creating a Variable-Length Argument List

    2. Iterating Over Variable-Length Argument Lists

    3. Allowing Zero-Length Argument Lists

    4. Specify Object Arguments Over Primitives

    5. Avoiding Automatic Array Conversion

  6. Chapter 6 Annotations

    1. Using Standard Annotation Types

    2. Annotating an Overriding Method

    3. Annotating a Deprecated Method

    4. Suppressing Warnings

    5. Creating Custom Annotation Types

    6. Annotating Annotations

    7. Defining an Annotation Type's Target

    8. Setting the Retention of an Annotation Type

    9. Documenting Annotation Types

    10. Setting Up Inheritance in Annotations

    11. Reflecting on Annotations

  7. Chapter 7 The for/in Statement

    1. Ditching Iterators

    2. Iterating over Arrays

    3. Iterating over Collections

    4. Avoiding Unnecessary Typecasts

    5. Making Your Classes Work with for/in

    6. Determining List Position and Variable Value

    7. Removing List Items in a for/in Loop

  8. Chapter 8 Static Imports

    1. Importing Static Members

    2. Using Wildcards in Static Imports

    3. Importing Enumerated Type Values

    4. Importing Multiple Members with the Same Name

    5. Shadowing Static Imports

  9. Chapter 9 Formatting

    1. Creating a Formatter

    2. Writing Formatted Output

    3. Using the format( ) Convenience Method

    4. Using the printf( ) Convenience Method

  10. Chapter 10 Threading

    1. Handling Uncaught Exceptions in Threads

    2. Using Thread-Safe Collections

    3. Using Blocking Queues

    4. Specifying Timeouts for Blocking

    5. Separating Thread Logic from Execution Logic

    6. Using Executor as a Service

    7. Using Callable Objects

    8. Executing Tasks Without an ExecutorService

    9. Scheduling Tasks

    10. Advanced Synchronizing

    11. Using Atomic Types

    12. Locking Versus Synchronization

  1. Colophon

View Full Table of Contents
Product Details
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 Release:
June 2004
Ebook Release:
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
Customer Reviews
About the Authors
  1. 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.

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

  • Book cover of Java 5.0 Tiger: A Developer's Notebook