Effective Java, 3/e (Paperback)

Joshua Bloch

買這商品的人也買了...

相關主題

商品描述

The Definitive Guide to Java Platform Best Practices—Updated for Java 7, 8, and 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 interface, java.time, and the convenience factory methods for collections

 

Register your product at informit.com/register for convenient access to the web edition eBook, updates, and/or corrections as they become available.

商品描述(中文翻譯)

《Java平台最佳實踐指南——針對Java 7、8和9進行更新》

Java自Java 6發布後已經發生了巨大變化,這本獲得Jolt獎的經典著作已經全面更新,以充分利用最新的語言和庫功能。現代Java對多種範式的支持增加了對特定最佳實踐建議的需求,而本書正是提供了這些建議。

與之前的版本一樣,《Effective Java, 第三版》的每一章都由幾個“項目”組成,每個項目都以短小的獨立文章形式呈現,提供具體的建議、Java平台細微之處的見解以及更新的代碼示例。對每個項目的全面描述和解釋闡明了應該做什麼、不應該做什麼以及為什麼這樣做。

第三版涵蓋了Java 7、8和9中新增的語言和庫功能,包括添加到其面向對象根源的函數式編程構造。新增了許多新項目,包括一章專門介紹lambda和stream。

新的內容包括:

- 函數式接口、lambda表達式、方法引用和stream
- 接口中的默認方法和靜態方法
- 類型推斷,包括泛型類型的鑽石運算符
- @SafeVarargs註釋
- try-with-resources語句
- 新的庫功能,如Optional接口、java.time和集合的便捷工廠方法

請在informit.com/register上註冊您的產品,以便方便地訪問網絡版電子書、更新和/或錯誤更正。