Effective Java(第2版)英文版

Effective Java(第2版)英文版 pdf epub mobi txt 電子書 下載2025

出版者:電子工業齣版社
作者:[美] Joshua Bloch
出品人:
頁數:368
译者:
出版時間:2016-4
價格:65
裝幀:平裝
isbn號碼:9787121273148
叢書系列:原味精品書係
圖書標籤:
  • Java
  • 編程
  • 計算機
  • 英文原版
  • 技術
  • 思維
  • 英文
  • 編程語言
  • Effective Java
  • 第2版
  • 英文版
  • 編程
  • 設計模式
  • Java
  • 核心編程
  • 麵嚮對象
  • 實戰
  • 高效
想要找書就要到 小美書屋
立刻按 ctrl+D收藏本頁
你會得到大驚喜!!

具體描述

《Effective Java(第2版)英文版》介紹瞭在Java編程中的78條非常具有實用價值的經驗規則,這些經驗規則涵蓋瞭大部分開發人員每天所麵臨的問題的解決方案。通過對Java平颱設計專傢所使用的技術的全麵描述,揭示瞭應該做什麼,不應該做什麼,以及怎樣纔能編寫齣清晰、健壯和高效的代碼。《Effective Java(第2版)英文版》中的每條規則都以簡短、獨立的小文章形式齣現,並通過示例代碼進一步進行說明。本書內容全麵,結構清晰,講解詳細,可作為技術人員的參考用書。

著者簡介

Joshua Bloch是Google公司的首席Java架構師。是Jolt大奬的獲得者。他曾是Sun公司的傑齣工程師,和Transarc公司的高級係統設計師。Bloch曾帶領團隊設計和實現過無數的Java平颱特性,包括JDK 5.0語言增強版和獲奬的Java Collections Framework。他的著作還包括:《Java Puzzlers》、《Java Concurrency in Practive》等。

圖書目錄

推薦序
前言
1 Introduction
2 Creating and Destroying Objects
Item 1: Consider static factory methods instead of constructors
Item 2: Consider a builder when faced with many constructor parameters
Item 3: Enforce the singleton property with a private constructor or an enum type
Item 4: Enforce noninstantiability with a private constructor
Item 5: Avoid creating unnecessary objects
Item 6: Eliminate obsolete object references
Item 7: Avoid finalizers
3 Methods Common to All Objects
Item 8: Obey the general contract when overriding equals
Item 9: Always override hashCode when you override equals
Item 10: Always override toString
Item 11: Override clone judiciously
Item 12: Consider implementing Comparable
4 Classes and Interfaces
Item 13: Minimize the accessibility of classes and members
Item 14: In public classes, use accessor methods, not public fields
Item 15: Minimize mutability
Item 16: Favor composition over inheritance
Item 17: Design and document for inheritance or else prohibit it
Item 18: Prefer interfaces to abstract classes
Item 19: Use interfaces only to define types
Item 20: Prefer class hierarchies to tagged classes
Item 21: Use function objects to represent strategies
Item 22: Favor static member classes over nonstatic
5 Generics
Item 23: Don’t use raw types in new code
Item 24: Eliminate unchecked warnings
Item 25: Prefer lists to arrays
Item 26: Favor generic types
Item 27: Favor generic methods
Item 28: Use bounded wildcards to increase API flexibility
Item 29: Consider typesafe heterogeneous containers
6 Enums and Annotations
Item 30: Use enums instead of int constants
Item 31: Use instance fields instead of ordinals
Item 32: Use EnumSet instead of bit fields
Item 33: Use EnumMap instead of ordinal indexing
Item 34: Emulate extensible enums with interfaces
Item 35: Prefer annotations to naming patterns
Item 36: Consistently use the Override annotation
Item 37: Use marker interfaces to define types
7 Methods
Item 38: Check parameters for validity
Item 39: Make defensive copies when needed
Item 40: Design method signatures carefully
Item 41: Use overloading judiciously
Item 42: Use varargs judiciously
Item 43: Return empty arrays or collections, not nulls
Item 44: Write doc comments for all exposed API elements
8 General Programming
Item 45: Minimize the scope of local variables
Item 46: Prefer for-each loops to traditional for loops
Item 47: Know and use the libraries
Item 48: Avoid float and double if exact answers are required
Item 49: Prefer primitive types to boxed primitives
Item 50: Avoid strings where other types are more appropriate
Item 51: Beware the performance of string concatenation
Item 52: Refer to objects by their interfaces
Item 53: Prefer interfaces to reflection
Item 54: Use native methods judiciously
Item 55: Optimize judiciously
Item 56: Adhere to generally accepted naming conventions
9 Exceptions
Item 57: Use exceptions only for exceptional conditions
Item 58: Use checked exceptions for recoverable conditions and runtime exceptions for programming errors
Item 59: Avoid unnecessary use of checked exceptions
Item 60: Favor the use of standard exceptions
Item 61: Throw exceptions appropriate to the abstraction
Item 62: Document all exceptions thrown by each method
Item 63: Include failure-capture information in detail messages
Item 64: Strive for failure atomicity
Item 65: Don’t ignore exceptions
10 Concurrency
Item 66: Synchronize access to shared mutable data
Item 67: Avoid excessive synchronization
Item 68: Prefer executors and tasks to threads
Item 69: Prefer concurrency utilities to wait and notify
Item 70: Document thread safety
Item 71: Use lazy initialization judiciously
Item 72: Don’t depend on the thread scheduler
Item 73: Avoid thread groups
11 Serialization
Item 74: Implement Serializable judiciously
Item 75: Consider using a custom serialized form
Item 76: Write readObject methods defensively
Item 77: For instance control, prefer enum types to readResolve
Item 78: Consider serialization proxies instead of serialized instances
Appendix: Items Corresponding to First Edition
References
Index
· · · · · · (收起)

讀後感

評分

java书籍如core Java经常分两册,上册为基础fundmental,下册为advanced。上册讲编程的基本概念,下册谈被升级的概念(如泛型对于Object,try是某种不判断的if,并发是循环的横向扩展,集合是某种高级的数组等等)。这类书给人的感觉是概念的任意组合,正交化,什么都可以...  

評分

每种语言都有一个“Effective guide”,对于Java,那就是这本《Effective Java》。 这是一本实用至上的书,78条建议,满满的干货。每一条都说明了为什么最好这样。这些经验,都是对大量的程序项目进行反思时逐渐形成的。对于Java这种极为健全乃至有点过于丰满的语言,这样一本...  

評分

就内容来说还是相当不错的,翻译也挺好的不会有拗口的感觉.纸质有很多人抱怨过了我就不重复说了.不过对阅读不影响,反正是学里面的东西又不是冲着纸去的.不过话说回来有点小贵啊  

評分

本书教你如何更好的编写Java程序。建议开发经验有两三年的人都要读一读这本书,将里面说到的Item都进行一个练习,肯定会有很好的收获。 当然这本书读起来还是有些累的,有些地方的内容需要仔细理解才能有很好的收获,这也可能是我读的是英文版的关系。 书中主要介绍了如何创建...  

評分

抱歉没有购买正版图书!该书内容同样不太适合完全没有java基础或者是java实战经验较少的同学阅读。与很多偏向编程技巧书籍类似,若没有一定的实战经验,很难去理解作者全书中讲解的奇淫异术,不过新手也可以作为基础知识学习的扩展,不至于“第一份”代码因为缺少太多实战...  

用戶評價

评分

買的這本,但是實際讀的還是讀書分享會發的黃皮的那本中文的。這本書不是係統講解語言特性的入門書,是幾十條編程建議,可用於提高

评分

常看常新,實踐齣真知。

评分

內容很豐富且實用,獲益匪淺!

评分

都是大佬的經驗之談,但很偏實際工程,完全實用主義上的,如果隻是寫業務代碼作為client programmer而不是寫tool,很多item都不太能提供幫助

评分

為瞭麵試 也是豁齣去瞭 @@

本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度google,bing,sogou

© 2025 book.quotespace.org All Rights Reserved. 小美書屋 版权所有