Cover image for Java: The Good Parts

Book description

In this book, one of the most highly respected developers in the Java world peels away 15 years of additions and changes to reveal the very best parts of Java, and shows you how those parts alone will help you build better applications. You may not like some of the features this book reveals, but you'll actually write better code with them. Java: The Good Parts is essential for every Java developer, from beginners to advanced programmers.

Table of Contents

  1. Special Upgrade Offer
  2. A Note Regarding Supplemental Files
  3. Preface
    1. Java and Me
    2. You, the Audience
    3. Conventions Used in This Book
    4. Using Code Examples
    5. How to Contact Us
    6. Safari® Books Online
    7. Acknowledgments
  4. 1. An Introduction to Java
    1. What Is Java Good For?
  5. 2. The Type System
    1. The Basics
    2. Why Have Three?
    3. Inside and Out
    4. Beware
    5. A Real Problem
  6. 3. Exceptions
    1. The Basics
    2. The Why
      1. How It Works
    3. Use and Abuse
    4. The Dark Side
  7. 4. Packages
    1. The Basics
    2. Packages and Access Control
    3. An Example
    4. Packages and the Filesystem
  8. 5. Garbage Collection
    1. The Basics
    2. Garbage Collection and References
      1. Memory Leaks
    3. Other Resources
  9. 6. The Java Virtual Machine
    1. The Basics
    2. Security
    3. Portability
      1. Portability Traps
  10. 7. Javadoc
    1. The Basics
    2. An Example
      1. Implementation Documentation
      2. Package Documentation
    3. Style Guides, Editors, and Nonterminating Discussions
  11. 8. Collections
    1. The Basics
    2. Parameterized Types
    3. Advanced Topics
    4. Random Access
    5. Some Last Thoughts
  12. 9. Remote Method Invocation and Object Serialization
    1. The Basics
    2. Object Serialization
    3. Subtypes in RPC Systems
  13. 10. Concurrency
    1. The Basics
    2. Synchronizing
    3. Atomic Data
  14. 11. The Developer Ecology
    1. IDEs
    2. JUnit
    3. FindBugs
    4. Other Tools
  15. Index
  16. About the Author
  17. Colophon
  18. Special Upgrade Offer
  19. Copyright