Elephant
oreilly.com O'Reilly Network Safari Bookshelf Conferences Sign In/My Account | View Cart   
Book List Learning Lab eDocuments O'Reilly Gear Newsletters Press Room Jobs      O'Reilly China O'Reilly France O'Reilly Germany O'Reilly Japan O'Reilly Taiwan O'Reilly UK  

 
Bioinformatics
C/C++
Databases
Digital Media
Enterprise Development
Game Development
Java
Linux/Unix
Macintosh/OS X
.NET
Open Source
Oracle
Perl
Python
Scripting
Security
Software Development
SysAdmin/Networking
Web
Web Services
Windows
Wireless
XML
Annoyances
CD Bookshelves
Cookbooks
Developer's Notebooks
Hacks
Head First
In A Nutshell
Missing Manuals
Pocket References
Personal Trainer
Technology & Society
Mandriva
No Starch Press
Paraglyph Press
PC Publishing
Pragmatic Bookshelf
SitePoint
Syngress Publishing
LinuxDevCenter.com
MacDevCenter.com
ONDotnet.com
ONJava.com
ONLamp.com
OpenP2P.com
Perl.com
WebServices.XML.com
WindowsDevCenter.com
XML.com
Beta Chapters
Events
From the Editors List
Letters
MAKE
Open Books
tim.oreilly.com
Academic
Corporate Services
Government
About O'Reilly
Bookstores
Catalog Request
Contact Us
International
Register Your Book
User Groups
Writing for O'Reilly
This book qualifies for free shipping
Java 5.0 Tiger: A Developer's Notebook
see larger cover

Java 5.0 Tiger: A Developer's Notebook

By David Flanagan, Brett McLaughlin
First Edition June 2004 
Series: Developer's Notebooks
ISBN: 0-596-00738-8
200 pages, $29.95 US, $43.95 CA, £20.95 UK
Add to Cart Add to UK Cart Read Online--Safari

Table of Contents

The Developer's Notebook Series

Preface

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

Index

Return to Java 5.0 Tiger: A Developer's Notebook


O'Reilly Home | Privacy Policy

© 2005, O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.