Java 9 with JShell (Java 9 與 JShell)

Gaston C. Hillar

  • 出版商: Packt Publishing
  • 出版日期: 2017-03-29
  • 定價: $1,980
  • 售價: 6.0$1,188
  • 語言: 英文
  • 頁數: 408
  • 裝訂: Paperback
  • ISBN: 1787282848
  • ISBN-13: 9781787282841
  • 相關分類: Java 程式語言
  • 立即出貨 (庫存 < 3)

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

相關主題

商品描述

Key Features

  • A full account of Java 9's new features
  • This tutorial emphasises fluency using JShell exercises
  • Get a thorough introduction to contract programming code reuse via Java generics
  • Learn how to use the new module system
  • How to use proper functional programming style inside Java 9

Book Description

The release of Java 9 has brought many subtle and not-so-subtle changes to the way in which Java programmers approach their code. The most important ones are definitely the availability of a REPL, known as JShell, which will make experiments and prototyping much more straightforward than the old IDE-based project-led approach. Another, more subtle change can be seen in the module system, which will lead to more modularized, maintainable code. The techniques to take full advantage of object-oriented code, functional programming and the new modularity features in Java 9 form the main subjects of this book.

Each chapter will add to the full picture of Java 9 programming starting out with classes and instances and ending with generics and modularity in Java.

What you will learn

  • Engage with object-oriented programming in Java 9, starting with code snippets in JShell
  • Optimize your code, applying functional programming features
  • Discover the advantages of modularity
  • Become very proficient at using JShell itself
  • Learn the new approach to Java programming, which uses the REPL as a prototyping tool

About the Author

Gaston C. Hillar is Italian and has been working with computers since he was 8 years old. In the early 80s, he began programming with the legendary Texas TI-99/4A and Commodore 64 home computers. Gaston has a bachelor's degree in computer science (he graduated with honors). He also holds an MBA (he graduated with an outstanding thesis). At present, Gaston is an independent IT consultant and a freelance author who is always looking for new adventures around the world.

He was a senior contributing editor at Dr. Dobb's and has written more than a hundred articles on software development topics. He has received the prestigious Intel® Black Belt Software Developer award eight times. He has written many articles about Java for Oracle Java Magazine. Gaston was also a former Microsoft MVP in technical computing.

He is a guest blogger at Intel® Software Network (http://software.intel.com). You can reach him at gastonhillar@hotmail.com and follow him on Twitter at http://twitter.com/gastonhillar. Gaston's blog is http://csharpmulticore.blogspot.com.

He lives with his wife, Vanesa, and his two sons, Kevin and Brandon.

Table of Contents

  1. JShell – A Read-Evaluate-Print-Loop for Java 9
  2. Real-World Objects to UML Diagrams and Java 9 via JShell
  3. Classes and Instances
  4. Encapsulation of Data
  5. Mutable and Immutable Classes
  6. Inheritance, Abstraction, Extension, and Specialization
  7. Members Inheritance and Polymorphism
  8. Contract Programming with Interfaces
  9. Advanced Contract Programming with Interfaces
  10. Maximization of Code Reuse with Generics
  11. Advanced Generics
  12. Object-Oriented, Functional Programming, and Lambda Expressions
  13. Modularity in Java 9
  14. Exercise Answers

商品描述(中文翻譯)

主要特點


  • Java 9的新功能全面介紹

  • 本教程強調使用JShell練習來提高熟練度

  • 通過Java泛型深入介紹契約編程代碼重用

  • 學習如何使用新的模塊系統

  • 如何在Java 9中使用正確的函數式編程風格

書籍描述

Java 9的發布為Java程序員在編寫代碼時帶來了許多微妙而明顯的變化。其中最重要的變化無疑是REPL(即JShell)的可用性,它將使實驗和原型開發比舊的基於IDE的項目導向方法更加簡單直接。另一個更微妙的變化可以在模塊系統中看到,它將導致更模塊化、可維護的代碼。本書的主要主題是如何充分利用Java 9中的面向對象編程、函數式編程和新的模塊化功能。

每一章都將從類和實例開始,最終涵蓋Java中的泛型和模塊化,為Java 9編程提供全面的圖景。

你將學到什麼


  • 通過JShell中的代碼片段與Java 9的面向對象編程互動

  • 應用函數式編程特性優化代碼

  • 發現模塊化的優勢

  • 熟練使用JShell本身

  • 學習使用REPL作為原型開發工具的新的Java編程方法

關於作者

Gaston C. Hillar是意大利人,從8歲開始就一直從事計算機工作。在80年代初,他開始使用傳奇的Texas TI-99/4A和Commodore 64家用計算機進行編程。Gaston擁有計算機科學學士學位(榮譽畢業)。他還擁有MBA學位(以優秀論文畢業)。目前,Gaston是一名獨立的IT顧問和自由作家,他一直在尋找世界各地的新冒險。

他曾是Dr. Dobb's的高級撰稿人,並撰寫了100多篇有關軟件開發的文章。他曾八次獲得著名的Intel® Black Belt Software Developer獎項。他曾為Oracle Java Magazine撰寫了許多有關Java的文章。Gaston曾是微軟技術計算的前任MVP。

他是Intel® Software Network(http://software.intel.com)的客座博客作者。您可以通過gastonhillar@hotmail.com與他聯繫,並在http://twitter.com/gastonhillar上關注他的Twitter。Gaston的博客是http://csharpmulticore.blogspot.com。

他與妻子Vanesa和兩個兒子Kevin和Brandon一起生活。

目錄


  1. JShell - Java 9的讀取-評估-打印-循環

  2. 從現實世界對象到UML圖和Java 9(通過JShell)

  3. 類和實例

  4. 封裝數據

  5. 可變和不可變類

  6. 繼承、抽象、擴展和特化

  7. 成員繼承和多態性

  8. 使用接口進行契約編程

  9. 進階接口契約編程

  10. 通過泛型最大化代碼重用

  11. 進階泛型

  12. 面向對象、函數式編程和Lambda表達式

  13. Java 9中的模塊化

  14. 練習答案