The Definitive Guide to Java Platform Best Practices—Updated for Java 9
Java has changed dramatically since the previous edition of Effective Java was published shortly after the release of Java 6. This Jolt award-winning classic has now been thoroughly updated to take full advantage of the latest language and library features. The support in modern Java for multiple paradigms...
The Definitive Guide to Java Platform Best Practices—Updated for Java 9
Java has changed dramatically since the previous edition of Effective Java was published shortly after the release of Java 6. This Jolt award-winning classic has now been thoroughly updated to take full advantage of the latest language and library features. The support in modern Java for multiple paradigms increases the need for specific best-practices advice, and this book delivers.
As in previous editions, each chapter of Effective Java, Third Edition, consists of several “items,” each presented in the form of a short, stand-alone essay that provides specific advice, insight into Java platform subtleties, and updated code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why.
The third edition covers language and library features added in Java 7, 8, and 9, including the functional programming constructs that were added to its object-oriented roots. Many new items have been added, including a chapter devoted to lambdas and streams.
New coverage includes
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 the Optional<T> interface, java.time, and the convenience factory methods for collections
Joshua Bloch is a professor at Carnegie Mellon University. He was formerly the chief Java architect at Google, a distinguished engineer at Sun Microsystems, and a senior systems designer at Transarc. He led the design and implementation of numerous Java platform features, including the JDK 5.0 language enhancements and the Java Collections Framework. He holds a Ph.D. in compute...
Joshua Bloch is a professor at Carnegie Mellon University. He was formerly the chief Java architect at Google, a distinguished engineer at Sun Microsystems, and a senior systems designer at Transarc. He led the design and implementation of numerous Java platform features, including the JDK 5.0 language enhancements and the Java Collections Framework. He holds a Ph.D. in computer science from Carnegie Mellon University and a B.S. in computer science from Columbia University.
目录
· · · · · ·
Preface
About the Author
Chapter 1: Introduction
Chapter 2: Creating and Destroying Objects
Chapter 3: Methods Common to All Objects
Chapter 4: Classes and Interfaces
· · · · · ·
(更多)
Preface
About the Author
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
Index
· · · · · · (收起)
书是好书,但是翻译简直不堪卒读,有些地方我估计译者可能自己现在都看不懂。英语水平可以的话还是建议和英文版对比着读,我对比的时候就发现几个容易让读者迷惑的地方。比如在第 37 条的最后一段: 原文是: “In a sense, this item is the inverse of Item 19, which says, ...
(展开)
2 有用 gnatsh 2023-09-06 13:42:39 美国
这书断断续续看了三年多...刚看时每节都一头雾水,和干的活儿一样蒙。如今也觉得对方是在说人话了。与其说是我读effective java,不如说是effective java在观察我。
3 有用 夙4 2020-04-13 15:01:02
刚出版的时候买的,隔了两年终于读完了..老板都换了三了
1 有用 虾卤 2018-09-13 01:50:25
很不错,中阶java书籍,在当下版本也比较新
1 有用 Moonlight 2020-03-08 00:18:09
书是好书,死亡翻译,令人绝望。第一条第一段“它只是一个返回类/的实例/的静态方法” 读了5遍才明白是“它只是一个/返回类的实例/的静态方法”
0 有用 大男孩 2018-09-14 07:32:54
一如既往地经典,新增的 java8内容弥补了这一块的缺失,推荐所有java从业者