Each chapter in the book consists of several “items” presented in the form of a short, standalone essay that provides specific advice, insight into Java platform subtleties, and outstanding code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why.
Highlights include:
- New coverage of generics, enums, annotations, autoboxing, the for-each loop, varargs, concurrency utilities, and much more
- Updated techniques and best practices on classic topics, including objects, classes, libraries, methods, and serialization
- How to avoid the traps and pitfalls of commonly misunderstood subtleties of the language
- Focus on the language and its most fundamental libraries: java.lang, java.util, and, to a lesser extent, java.util.concurrent and java.io
Chapter 1 Introduction
Chapter 2 Creating and Destroying Objects
Chapter 3 Methods Common to All Objects
Chapter 4 Classes and Interfaces
Chapter 5 Generics
Chapter 6 Enums and Annotations
Chapter 7 Methods
Chapter 8 General Programming
Chapter 9 Exceptions
Chapter 10 Concurrency
Chapter 11 Serialization
“I sure wish I had this book ten years ago. Some might think that I don't need any Java books, but I need this one.”
--James Gosling --
Fellow and vice president, Sun Microsystems, Inc.
“An excellent book, crammed with good advice on using the Java programming language and object-oriented programming in general.”
-- Gilad Bracha --
Coauthor of The Java™ Language Specification, Third Edition