Product Description
It's one thing to write Java programs that run. It's another to write elegant Java programs that deliver exceptional performance. For that, you need a profound understanding of Java idioms and style: That's what Java 2 Performance and Idiom Guide delivers: a complete guide to more than 100 Java best practices you'd otherwise have to learn the hard way -- and might never learn! Coverage includes best practices for using the Java language; best practices idioms associated with the key Java libraries; and the patterns and idioms of concurrent programming. The book offers the best coverage of Java performance optimization ever published. You'll learn how to organize Java packages for maximum effectiveness and maintainability; how to test object-oriented Java code; and much more. Larman and Guthrie have bundled a career's worth of Java insight into a single 240-page book -- and every Java developer will benefit from owning a copy.
From the Back Cover
1426K-0
Thank you for considering the Java 2 Performance and Idiom Guide. The goal of this book is to document the common idioms and optimization techniques that experienced Java developers should know. The topics are presented specifically for Java 2, including coverage of features such as the Collections Framework and the HotSpot JVM.
High Performance Java-write fast code
Our goal is to help catapult the beginner or intermediate Java developer over the chasm of performance pitfalls the Java platform challenges us with. Thus, the book includes a broad introduction to optimizing for speed and space, including:
- Design level optimization principles
- Environment and tool strategies
- Algorithm and data structure strategies
- Language and library specific optimization techniques.
Idioms in Java-write code fast
There are a wide variety of "tricks of the Java trade" or idioms that experienced Java developers apply to develop solid code. Like design patterns, coding idioms provide out-of-the-box solutions for many problems. Unlike design patterns, these idioms are very close to code and therefore take maximum advantage of the Java language and libraries. They include:
- Idiomatic usage of particular JDK classes and APIs, such as the Reflection API.
- Concurrency idioms to create thread-safe code
- Packaging and application structure idioms
- Naming and coding style idioms