发表于2025-02-28
Effective Java pdf epub mobi txt 电子书 下载
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.
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
##读过2rd的人,diff ## Chapter 2 - Creating and Destroying Objects - Item 5: Prefer dependency injection to hardwiring resources. 优先用框架支持(Spring)依赖注入,而不是手写单例 - Item 9: Prefer try-with-resources to try-finally. Java 7 特性,语法糖 ## Chapter 4 - Classes and Interfaces - Item 21: Design interfaces for posterity. interface default 实现,大家都会的 - Item 25: Limit source
评分 评分##就内容来说还是相当不错的,翻译也挺好的不会有拗口的感觉.纸质有很多人抱怨过了我就不重复说了.不过对阅读不影响,反正是学里面的东西又不是冲着纸去的.不过话说回来有点小贵啊
评分 评分##搞得我想对译者进行人身攻击 第16条第47条连大标题都翻译错了。第16条 In public classes,use accessor methods,not public fields。明显是倡议使用访问方法,不要直接暴露成员。结果标题翻译成了要在公有类而非公有域中使用访问方法,匪夷所思。我觉得就算让初中生来翻译结合...
评分 评分##相见恨晚,非Java程序员也可以算必读书之一了。
评分##相见恨晚,非Java程序员也可以算必读书之一了。
评分Effective Java pdf epub mobi txt 电子书 下载