
Title overview
Since this Jolt-award winning classic was last updated in 2008 (shortly after Java 6 was released), Java has changed dramatically. The principal enhancement in Java 8 was the addition of functional programming constructs to Java's object-oriented roots. Java 7, 8, and 9 also introduced language features, such as the try-with-resources statement, the diamond operator for generic types, default and static methods in interfaces, the @SafeVarargs annotation, and modules. New library features include pervasive use of functional interfaces and streams, the java.time package for manipulating dates and times, and numerous minor enhancements such as convenience factory methods for collections.
In this new edition of Effective Java, Bloch updates the work to take advantage of these new language and library features, and provides specific best practices for their use. Java's increased support for multiple paradigms increases the need for best-practices advice, and this book delivers.
- Presents the most practical, authoritative guidelines available for writing efficient, well-designed programs for the Java platform
- Completely updated for Java releases since 2008
- Java programming paradigm has evolved significantly in last 5 years and new material covered in this edition is critical to modern Java programming
Thoroughly revised and updated to cover language and library features added in Java 7, 8, and 9, and recent trends in Java programming. Many new items have been added, including a chapter devoted to lambdas and streams. New topics include:
--Functional interfaces, lambda expressions, method references, and streams
--Default and static methods in interfaces
--Type inference, including the diamond operator for generic types
--The @SafeVarargs annotation
--The try-with-resources statement
--New library features such as java.time and the convenience factory methods for collections
Table of contents
- 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: Lambdas and Streams
- Chapter 8: Methods
- Chapter 9: General Programming
- Chapter 10: Exceptions
- Chapter 11: Concurrency
- Chapter 12: Serialization
- References
- Index