相關主題
商品描述
Explore the new Java programming language features and APIs introduced in Java 10 through Java 13. Java 13 Revealed is for experienced Java programmers looking to migrate to Java 13. Author Kishori Sharan begins by covering how to use local variable type inference to improve readability of your code and time-based release versioning of the Java platform to understand the Java release strategy.
This book provides extensive coverage of the new HTTP Client APIs, which were introduced in Java 9 as a preview and was made a standard feature in Java 11. New Java features such as launching a single-file source code program and new switch syntax are discussed in detail.
What You Will Learn
- Use local variable type inference to declare local variables using the var restricted type name introduced in Java 10
- Take advantage of application class data sharing among JVMs for faster application startup
- Create HTTP requests, responses, and web sockets with the new HTTP Client APIs
- Run a single-file Java source code program using the java command without compiling it
- Apply the new switch statement and expressions to write compact and less error-prone code
- Work with text blocks in Java code
- About new APIs, deprecated APIs, and deprecated tools
Who This Book Is For
Java developers who want to update their Java skills from Java 9 to Java 13.
商品描述(中文翻譯)
探索在 Java 10 到 Java 13 中引入的新 Java 程式語言特性和 API。《Java 13 Revealed》適合希望遷移到 Java 13 的經驗豐富的 Java 程式設計師。作者 Kishori Sharan 首先介紹如何使用局部變數類型推斷來提高程式碼的可讀性,以及 Java 平台的基於時間的版本釋出策略,以了解 Java 的釋出策略。
本書廣泛涵蓋了在 Java 9 中作為預覽引入的新 HTTP Client API,並在 Java 11 中成為標準功能。詳細討論了新 Java 特性,例如啟動單檔源代碼程式和新的 switch 語法。
您將學到什麼
- 使用局部變數類型推斷來聲明局部變數,使用在 Java 10 中引入的 var 限制類型名稱
- 利用應用程式類別資料共享在 JVM 之間加快應用程式啟動速度
- 使用新的 HTTP Client API 創建 HTTP 請求、響應和網路套接字
- 使用 java 命令運行單檔 Java 源代碼程式,而無需編譯
- 應用新的 switch 語句和表達式來編寫簡潔且不易出錯的程式碼
- 在 Java 程式碼中使用文字區塊
- 有關新 API、已棄用的 API 和已棄用的工具
本書適合誰
本書適合希望將 Java 技能從 Java 9 更新到 Java 13 的 Java 開發人員。
作者簡介
Kishori Sharan earned a master of science in computer information systems degree from Troy State University, Alabama. He is a Sun Certified Java 2 programmer. He has vast experience in providing training to professional developers in Java, JSP, EJB, and Web technologies. He possesses over ten years of experience in implementing enterprise-level Java applications.
作者簡介(中文翻譯)
Kishori Sharan 取得阿拉巴馬州特洛伊州立大學的計算機資訊系碩士學位。他是 Sun 認證的 Java 2 程式設計師。擁有豐富的經驗,為專業開發人員提供 Java、JSP、EJB 和網頁技術的培訓。他在實施企業級 Java 應用程式方面擁有超過十年的經驗。