Effective Java

Effective Java pdf epub mobi txt 电子书 下载 在线阅读 2026

☆☆☆☆☆
Joshua Bloch
图书标签:
想要找书就要到 静流书站
立刻按 ctrl+D收藏本页
你会得到大惊喜!!
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
· · · · · · (收起)

具体描述

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

用户评价

评分☆☆☆☆☆

##其实目前 Intellij IDEA 的建议中包含了不少。其他收获:不能过度使用 Streams 影响代码可读性,尽量用除了 String 以外其他可用的类型,用primitive 而不用 boxed type,尽量用接口而不是反射,异常一定包含最关键的信息,尽量用 executors,tasks,and streams 而少用线程。

评分☆☆☆☆☆

##相见恨晚,非Java程序员也可以算必读书之一了。

评分☆☆☆☆☆

##第三版新增的章节跟Joshua写作风格很不一样啊~

评分☆☆☆☆☆

##Joshua 2020 Spring在CMU有两门课:17-214 SE Design和17-480 API Design。

评分☆☆☆☆☆

##刚出版的时候买的,隔了两年终于读完了..老板都换了三了

评分☆☆☆☆☆

##这本还是得看英文版,而且最好写过一些Java代码,踩过坑后来看你,收获更大。

评分☆☆☆☆☆

##读过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

评分☆☆☆☆☆

##关于如何写正确的、安全的、易于维护的Java代码指导书。

评分☆☆☆☆☆

##书是好书,翻译不是特别好