# Effective-Java-3rd-edition-Chinese-English-bilingual
Effective Java(第 3 版)各章节的中英文学习参考,希望对 Java 技术的提高有所帮助,欢迎通过 issue 或 pr 提出建议和修改意见。
## 目录(Contents)
- **Chapter 2. Creating and Destroying Objects(创建和销毁对象)**
- [Chapter 2 Introduction(章节介绍)](Chapter-2/Chapter-2-Introduction.md)
- [Item 1: Consider static factory methods instead of constructors(考虑以静态工厂方法代替构造函数)](Chapter-2/Chapter-2-Item-1-Consider-static-factory-methods-instead-of-constructors.md)
- [Item 2: Consider a builder when faced with many constructor parameters(在面对多个构造函数参数时,请考虑构建器)](Chapter-2/Chapter-2-Item-2-Consider-a-builder-when-faced-with-many-constructor-parameters.md)
- [Item 3: Enforce the singleton property with a private constructor or an enum type(使用私有构造函数或枚举类型实施单例属性)](Chapter-2/Chapter-2-Item-3-Enforce-the-singleton-property-with-a-private-constructor-or-an-enum-type.md)
- [Item 4: Enforce noninstantiability with a private constructor(用私有构造函数实施不可实例化)](Chapter-2/Chapter-2-Item-4-Enforce-noninstantiability-with-a-private-constructor.md)
- [Item 5: Prefer dependency injection to hardwiring resources(依赖注入优于硬连接资源)](Chapter-2/Chapter-2-Item-5-Prefer-dependency-injection-to-hardwiring-resources.md)
- [Item 6: Avoid creating unnecessary objects(避免创建不必要的对象)](Chapter-2/Chapter-2-Item-6-Avoid-creating-unnecessary-objects.md)
- [Item 7: Eliminate obsolete object references(排除过时的对象引用)](Chapter-2/Chapter-2-Item-7-Eliminate-obsolete-object-references.md)
- [Item 8: Avoid finalizers and cleaners(避免使用终结器和清除器)](Chapter-2/Chapter-2-Item-8-Avoid-finalizers-and-cleaners.md)
- [Item 9: Prefer try with resources to try finally(使用 try-with-resources 优于 try-finally)](Chapter-2/Chapter-2-Item-9-Prefer-try-with-resources-to-try-finally.md)
- **Chapter 3. Methods Common to All Objects(对象的通用方法)**
- [Chapter 3 Introduction(章节介绍)](Chapter-3/Chapter-3-Introduction.md)
- [Item 10: Obey the general contract when overriding equals(覆盖 equals 方法时应遵守的约定)](Chapter-3/Chapter-3-Item-10-Obey-the-general-contract-when-overriding-equals.md)
- [Item 11: Always override hashCode when you override equals(当覆盖 equals 方法时,总要覆盖 hashCode 方法)](Chapter-3/Chapter-3-Item-11-Always-override-hashCode-when-you-override-equals.md)
- [Item 12: Always override toString(始终覆盖 toString 方法)](Chapter-3/Chapter-3-Item-12-Always-override-toString.md)
- [Item 13: Override clone judiciously(明智地覆盖 clone 方法)](Chapter-3/Chapter-3-Item-13-Override-clone-judiciously.md)
- [Item 14: Consider implementing Comparable(考虑实现 Comparable 接口)](Chapter-3/Chapter-3-Item-14-Consider-implementing-Comparable.md)
- **Chapter 4. Classes and Interfaces(类和接口)**
- [Chapter 4 Introduction(章节介绍)](Chapter-4/Chapter-4-Introduction.md)
- [Item 15: Minimize the accessibility of classes and members(尽量减少类和成员的可访问性)](Chapter-4/Chapter-4-Item-15-Minimize-the-accessibility-of-classes-and-members.md)
- [Item 16: In public classes use accessor methods not public fields(在公共类中,使用访问器方法,而不是公共字段)](Chapter-4/Chapter-4-Item-16-In-public-classes-use-accessor-methods-not-public-fields.md)
- [Item 17: Minimize mutability(减少可变性)](Chapter-4/Chapter-4-Item-17-Minimize-mutability.md)
- [Item 18: Favor composition over inheritance(优先选择复合而不是继承)](Chapter-4/Chapter-4-Item-18-Favor-composition-over-inheritance.md)
- [Item 19: Design and document for inheritance or else prohibit it(继承要设计良好并且具有文档,否则禁止使用)](Chapter-4/Chapter-4-Item-19-Design-and-document-for-inheritance-or-else-prohibit-it.md)
- [Item 20: Prefer interfaces to abstract classes(接口优于抽象类)](Chapter-4/Chapter-4-Item-20-Prefer-interfaces-to-abstract-classes.md)
- [Item 21: Design interfaces for posterity(为后代设计接口)](Chapter-4/Chapter-4-Item-21-Design-interfaces-for-posterity.md)
- [Item 22: Use interfaces only to define types(接口只用于定义类型)](Chapter-4/Chapter-4-Item-22-Use-interfaces-only-to-define-types.md)
- [Item 23: Prefer class hierarchies to tagged classes(类层次结构优于带标签的类)](Chapter-4/Chapter-4-Item-23-Prefer-class-hierarchies-to-tagged-classes.md)
- [Item 24: Favor static member classes over nonstatic(静态成员类优于非静态成员类)](Chapter-4/Chapter-4-Item-24-Favor-static-member-classes-over-nonstatic.md)
- [Item 25: Limit source files to a single top level class(源文件仅限有单个顶层类)](Chapter-4/Chapter-4-Item-25-Limit-source-files-to-a-single-top-level-class.md)
- **Chapter 5. Generics(泛型)**
- [Chapter 5 Introduction(章节介绍)](Chapter-5/Chapter-5-Introduction.md)
- [Item 26: Do not use raw types(不要使用原始类型)](Chapter-5/Chapter-5-Item-26-Do-not-use-raw-types.md)
- [Item 27: Eliminate unchecked warnings(消除 unchecked 警告)](Chapter-5/Chapter-5-Item-27-Eliminate-unchecked-warnings.md)
- [Item 28: Prefer lists to arrays(list 优于数组)](Chapter-5/Chapter-5-Item-28-Prefer-lists-to-arrays.md)
- [Item 29: Favor generic types(优先使用泛型)](Chapter-5/Chapter-5-Item-29-Favor-generic-types.md)
- [Item 30: Favor generic methods(优先使用泛型方法)](Chapter-5/Chapter-5-Item-30-Favor-generic-methods.md)
- [Item 31: Use bounded wildcards to increase API flexibility(使用有界通配符增加 API 的灵活性)](Chapter-5/Chapter-5-Item-31-Use-bounded-wildcards-to-increase-API-flexibility.md)
- [Item 32: Combine generics and varargs judiciously(明智地合用泛型和可变参数)](Chapter-5/Chapter-5-Item-32-Combine-generics-and-varargs-judiciously.md)
- [Item 33: Consider typesafe heterogeneous containers(考虑类型安全的异构容器)](Chapter-5/Chapter-5-Item-33-Consider-typesafe-heterogeneous-containers.md)
- **Chapter 6. Enums and Annotations(枚举和注解)**
- [Chapter 6 Introduction(章节介绍)](Chapter-6/Chapter-6-Introduction.md)
- [Item 34: Use enums instead of int constants(用枚举类型代替 int 常量)](Chapter-6/Chapter-6-Item-34-Use-enums-instead-of-int-constants.md)
- [Item 35: Use instance fields instead of ordinals(使用实例字段替代序数)](Chapter-6/Chapter-6-Item-35-Use-instance-fields-instead-of-ordinals.md)
- [Item 36: Use EnumSet instead of bit fields(用 EnumSet 替代位字段)](Chapter-6/Chapter-6-Item-36-Use-EnumSet-instead-of-bit-fields.md)
- [Item 37: Use EnumMap instead of ordinal indexing(使用 EnumMap 替换序数索引)](Chapter-6/Chapter-6-Item-37-Use-EnumMap-instead-of-ordinal-indexing.md)
- [Item 38: Emulate extensible enums with interfaces(使用接口模拟可扩展枚举)](Chapter-6/Chapter-6-Item-38-Emulate-extensible-enums-with-interfaces.md)
- [Item 39: Prefer annotations to naming patterns(注解优于命名模式)](Chapter-6/Chapter-6-Item-39-Prefer-annotations-to-naming-patterns.md)
- [Item 40: Consistently use the Override annotation(坚持使用 @Override 注解)](Chapter-6/Chapter-6-Item-40-Consistently-use-the-Override-annotation.md)
- [Item 41: Use marker interfaces to define types(使用标记接口定义类型)](Chapter-6/Chapter-6-Item-41-Use-marker-interfaces-to-define-types.md)
- **Chapter 7. Lambdas and Streams(λ 表达式和流)**
- [Chapter 7 Introduction(章节介绍�
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Effective Java 第 3 版 中英双语effective Java(第3版)各章节的中英文学习参考,希望对Java技术的提高有所帮助,欢迎通过issue或pr提出建议和修改意见。目录(Contents)第 2 章 创建和销毁对象(创建和气氛对象)第二章简介(章节介绍)第 1 条考虑静态工厂方法而不是构造函数(考虑以静态工厂方法代替构造函数)Item 2: 当面对许多构造函数参数时考虑构建器(在面对多个构造函数参数时,请考虑构建器)Item 3: Enforce the singleton property with a private constructor or an enum type(使用私有构造函数或枚举类型实施单例属性)第 4 条使用私有构造函数强制不可实例化(用初始化构造函数实施不可实例化)第 5 条优先依赖注入而不是硬连线资源(依赖注入硬件连接资源)第 6 条避免创建不必要的对象(避免创建不必要的对象)第 7 项消除过时的对象引用(排除时的对象引用)第8条避免使用终结器和清除器(避免使用终结器和清除器)第 9 条优先使用 try
资源推荐
资源详情
资源评论
收起资源包目录
effective Java(第3版)各章节的中英文学习参考(已完成).zip (112个子文件)
.gitignore 9B
LICENSE 34KB
Chapter-3-Item-10-Obey-the-general-contract-when-overriding-equals.md 48KB
Chapter-6-Item-34-Use-enums-instead-of-int-constants.md 42KB
Chapter-3-Item-13-Override-clone-judiciously.md 33KB
Chapter-4-Item-17-Minimize-mutability.md 31KB
Chapter-6-Item-39-Prefer-annotations-to-naming-patterns.md 31KB
Chapter-8-Item-56-Write-doc-comments-for-all-exposed-API-elements.md 30KB
Chapter-3-Item-14-Consider-implementing-Comparable.md 29KB
Chapter-7-Item-45-Use-streams-judiciously.md 29KB
Chapter-7-Item-46-Prefer-side-effect-free-functions-in-streams.md 28KB
Chapter-8-Item-52-Use-overloading-judiciously.md 27KB
Chapter-12-Item-87-Consider-using-a-custom-serialized-form.md 27KB
Chapter-4-Item-19-Design-and-document-for-inheritance-or-else-prohibit-it.md 26KB
Chapter-5-Item-31-Use-bounded-wildcards-to-increase-API-flexibility.md 26KB
Chapter-2-Item-2-Consider-a-builder-when-faced-with-many-constructor-parameters.md 25KB
Chapter-4-Item-18-Favor-composition-over-inheritance.md 25KB
Chapter-11-Item-79-Avoid-excessive-synchronization.md 24KB
Chapter-2-Item-1-Consider-static-factory-methods-instead-of-constructors.md 24KB
Chapter-2-Item-8-Avoid-finalizers-and-cleaners.md 24KB
Chapter-11-Item-81-Prefer-concurrency-utilities-to-wait-and-notify.md 22KB
Chapter-4-Item-15-Minimize-the-accessibility-of-classes-and-members.md 22KB
Chapter-3-Item-11-Always-override-hashCode-when-you-override-equals.md 22KB
Chapter-8-Item-55-Return-optionals-judiciously.md 22KB
Chapter-7-Item-47-Prefer-Collection-to-Stream-as-a-return-type.md 22KB
Chapter-4-Item-20-Prefer-interfaces-to-abstract-classes.md 22KB
Chapter-5-Item-33-Consider-typesafe-heterogeneous-containers.md 21KB
Chapter-5-Item-26-Do-not-use-raw-types.md 21KB
Chapter-5-Item-32-Combine-generics-and-varargs-judiciously.md 21KB
Chapter-12-Item-88-Write-readObject-methods-defensively.md 20KB
Chapter-7-Item-44-Favor-the-use-of-standard-functional-interfaces.md 20KB
Chapter-6-Item-37-Use-EnumMap-instead-of-ordinal-indexing.md 20KB
Chapter-7-Item-48-Use-caution-when-making-streams-parallel.md 19KB
Chapter-12-Item-85-Prefer-alternatives-to-Java-serialization.md 18KB
Chapter-8-Item-50-Make-defensive-copies-when-needed.md 18KB
Chapter-11-Item-78-Synchronize-access-to-shared-mutable-data.md 18KB
Chapter-9-Item-68-Adhere-to-generally-accepted-naming-conventions.md 17KB
Chapter-12-Item-86-Implement-Serializable-with-great-caution.md 17KB
README.md 17KB
Chapter-2-Item-6-Avoid-creating-unnecessary-objects.md 16KB
Chapter-5-Item-29-Favor-generic-types.md 16KB
Chapter-9-Item-67-Optimize-judiciously.md 16KB
Chapter-7-Item-42-Prefer-lambdas-to-anonymous-classes.md 16KB
Chapter-5-Item-28-Prefer-lists-to-arrays.md 15KB
Chapter-8-Item-49-Check-parameters-for-validity.md 15KB
Chapter-12-Item-89-For-instance-control-prefer-enum-types-to-readResolve.md 15KB
Chapter-4-Item-24-Favor-static-member-classes-over-nonstatic.md 15KB
Chapter-9-Item-59-Know-and-use-the-libraries.md 15KB
Chapter-11-Item-82-Document-thread-safety.md 14KB
Chapter-3-Item-12-Always-override-toString.md 14KB
Chapter-5-Item-30-Favor-generic-methods.md 14KB
Chapter-9-Item-61-Prefer-primitive-types-to-boxed-primitives.md 14KB
Chapter-12-Item-90-Consider-serialization-proxies-instead-of-serialized-instances.md 13KB
Chapter-6-Item-38-Emulate-extensible-enums-with-interfaces.md 13KB
Chapter-11-Item-83-Use-lazy-initialization-judiciously.md 13KB
Chapter-9-Item-65-Prefer-interfaces-to-reflection.md 13KB
Chapter-2-Item-7-Eliminate-obsolete-object-references.md 13KB
Chapter-4-Item-21-Design-interfaces-for-posterity.md 12KB
Chapter-6-Item-41-Use-marker-interfaces-to-define-types.md 11KB
Chapter-8-Item-51-Design-method-signatures-carefully.md 11KB
Chapter-10-Item-69-Use-exceptions-only-for-exceptional-conditions.md 11KB
Chapter-10-Item-70-Use-checked-exceptions-for-recoverable-conditions-and-runtime-exceptions-for-programming-errors.md 11KB
Chapter-9-Item-58-Prefer-for-each-loops-to-traditional-for-loops.md 11KB
Chapter-9-Item-57-Minimize-the-scope-of-local-variables.md 11KB
Chapter-9-Item-62-Avoid-strings-where-other-types-are-more-appropriate.md 10KB
Chapter-6-Item-40-Consistently-use-the-Override-annotation.md 10KB
Chapter-4-Item-23-Prefer-class-hierarchies-to-tagged-classes.md 10KB
Chapter-11-Item-80-Prefer-executors,-tasks,-and-streams-to-threads.md 10KB
Chapter-10-Item-75-Include-failure-capture-information-in-detail-messages.md 10KB
Chapter-10-Item-72-Favor-the-use-of-standard-exceptions.md 10KB
Chapter-2-Item-9-Prefer-try-with-resources-to-try-finally.md 9KB
Chapter-2-Item-3-Enforce-the-singleton-property-with-a-private-constructor-or-an-enum-type.md 9KB
Chapter-5-Item-27-Eliminate-unchecked-warnings.md 9KB
Chapter-7-Item-43-Prefer-method-references-to-lambdas.md 9KB
Chapter-10-Item-71-Avoid-unnecessary-use-of-checked-exceptions.md 9KB
Chapter-10-Item-76-Strive-for-failure-atomicity.md 9KB
Chapter-9-Item-64-Refer-to-objects-by-their-interfaces.md 9KB
Chapter-2-Item-5-Prefer-dependency-injection-to-hardwiring-resources.md 9KB
Chapter-9-Item-60-Avoid-float-and-double-if-exact-answers-are-required.md 9KB
Chapter-10-Item-74-Document-all-exceptions-thrown-by-each-method.md 9KB
Chapter-11-Item-84-Don’t-depend-on-the-thread-scheduler.md 8KB
CONTRIBUTING_zh.md 8KB
Chapter-4-Item-22-Use-interfaces-only-to-define-types.md 7KB
Chapter-6-Item-36-Use-EnumSet-instead-of-bit-fields.md 7KB
Chapter-8-Item-53-Use-varargs-judiciously.md 7KB
Chapter-8-Item-54-Return-empty-collections-or-arrays-not-nulls.md 7KB
Chapter-10-Item-73-Throw-exceptions-appropriate-to-the-abstraction.md 7KB
Chapter-4-Item-16-In-public-classes-use-accessor-methods-not-public-fields.md 7KB
Chapter-4-Item-25-Limit-source-files-to-a-single-top-level-class.md 7KB
CONTRIBUTING.md 7KB
Chapter-9-Item-66-Use-native-methods-judiciously.md 6KB
Chapter-2-Item-4-Enforce-noninstantiability-with-a-private-constructor.md 6KB
Chapter-9-Item-63-Beware-the-performance-of-string-concatenation.md 5KB
Chapter-10-Item-77-Don’t-ignore-exceptions.md 5KB
Chapter-6-Item-35-Use-instance-fields-instead-of-ordinals.md 4KB
Chapter-4-Introduction.md 3KB
Chapter-9-Introduction.md 3KB
Chapter-5-Introduction.md 3KB
Chapter-3-Introduction.md 2KB
Chapter-2-Introduction.md 2KB
共 112 条
- 1
- 2
资源评论
徐浪老师
- 粉丝: 8090
- 资源: 7772
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Spring Boot和MyBatis的社区问答系统.zip
- (源码)基于Spring Boot和WebSocket的人事管理系统.zip
- (源码)基于Spring Boot框架的云网页管理系统.zip
- (源码)基于Maude和深度强化学习的智能体验证系统.zip
- (源码)基于C语言的Papageno字符序列处理系统.zip
- (源码)基于Arduino的水质监测与控制系统.zip
- (源码)基于物联网的智能家居门锁系统.zip
- (源码)基于Python和FastAPI的Squint数据检索系统.zip
- (源码)基于Arduino的图片绘制系统.zip
- (源码)基于C++的ARMA53贪吃蛇游戏系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功