Book description
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.
Publisher resources
Table of contents
- A Note Regarding Supplemental Files
- Copyright
- The Developer’s Notebook Series
- Preface
- 1. What’s New?
-
2. Generics
- 2.1. Using Type-Safe Lists
- 2.2. Using Type-Safe Maps
- 2.3. Iterating Over Parameterized Types
- 2.4. Accepting Parameterized Types as Arguments
- 2.5. Returning Parameterized Types
- 2.6. Using Parameterized Types as Type Parameters
- 2.7. Checking for Lint
- 2.8. Generics and Type Conversions
- 2.9. Using Type Wildcards
- 2.10. Writing Generic Types
- 2.11. Restricting Type Parameters
- 3. Enumerated Types
- 4. Autoboxing and Unboxing
- 5. varargs
-
6. Annotations
- 6.1. Using Standard Annotation Types
- 6.2. Annotating an Overriding Method
- 6.3. Annotating a Deprecated Method
- 6.4. Suppressing Warnings
- 6.5. Creating Custom Annotation Types
- 6.6. Annotating Annotations
- 6.7. Defining an Annotation Type’s Target
- 6.8. Setting the Retention of an Annotation Type
- 6.9. Documenting Annotation Types
- 6.10. Setting Up Inheritance in Annotations
- 6.11. Reflecting on Annotations
- 7. The for/in Statement
- 8. Static Imports
- 9. Formatting
-
10. Threading
- 10.1. Handling Uncaught Exceptions in Threads
- 10.2. Using Thread-Safe Collections
- 10.3. Using Blocking Queues
- 10.4. Specifying Timeouts for Blocking
- 10.5. Separating Thread Logic from Execution Logic
- 10.6. Using Executor as a Service
- 10.7. Using Callable Objects
- 10.8. Executing Tasks Without an ExecutorService
- 10.9. Scheduling Tasks
- 10.10. Advanced Synchronizing
- 10.11. Using Atomic Types
- 10.12. Locking Versus Synchronization
- Index
- About the Authors
- Colophon
- Copyright
Product information
- Title: Java 5.0 Tiger: A Developer's Notebook
- Author(s):
- Release date: June 2004
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596007386
You might also like
book
Java 9 Programming Blueprints
Build a variety of real-world applications by taking advantage of the newest features of Java 9 …
book
Java 9: Building Robust Modular Applications
Mastering advanced features of Java and implement them to build amazing projects About This Book Take …
book
Spring Recipes: A Problem-Solution Approach, Third Edition
Spring Recipes: A Problem-Solution Approach, Third Edition builds upon the best-selling success of the previous editions …
audiobook
Transformed
Help transform your business and innovate like the world's top tech companies! Transformed: Moving to the …