Java 9及其新特性豐富了Java語(yǔ)言的內(nèi)涵,這是開(kāi)發(fā)者們*廣泛使用的語(yǔ)言之一。Java9通過(guò)與Jigsaw集成,從而特別強(qiáng)調(diào)了模塊化。本書(shū)是你精通該語(yǔ)言的一站式指南。
你可以從中獲得Java 9相關(guān)的概覽和新特性解釋。并了解新API和增強(qiáng)部分的重要性。某些Java 9的新特性是開(kāi)創(chuàng)性的,如果是有經(jīng)驗(yàn)的程序員,你將能夠把企業(yè)級(jí)應(yīng)用變得更精煉。愛(ài)德華·拉維耶里、皮特·維哈斯著的《精通Java9(影印版)(英文版)》提供了在Java平臺(tái)開(kāi)發(fā)上應(yīng)用Java 9相關(guān)新知識(shí)以及更多信息的實(shí)用指南。本書(shū)有助于提高生產(chǎn)力,讓你的應(yīng)用變得更快。通過(guò)學(xué)習(xí)Java*佳實(shí)踐,你將成為組織里的百曉生。
學(xué)完此書(shū),你不僅能知道Java 9的重要概念,也會(huì)對(duì)使用這門(mén)語(yǔ)言進(jìn)行編程的重要方面具備精深理解。
Preface
Chapter 1: The Java 9 Landscape
Java 9 at 20,000 feet
Breaking the monolith
Playing around with the Java Shell
Taking control of external processes
Boosting performance with G1
Measuring performance with JMH
Getting started with 2,0
Enpassing reactive programming
Expanding the wish list
Summary
Chapter 2: Discovering Java 9
Improved Contended Locking
Improvement goals
Segmented code cache
Memory allocation
Smart Java pilation, phase two
Resolving Lint and Doclint warnings
Tiered attributiofor javac
Annotations pipeline 2.0
New version-string scheme
Generating run-time piler tests automatically
Testing class-file attributes generated by Javac
Storing interned strings iCDS archives
The problem
The solution
Preparing JavaFX UI controls and CSS APIs for modularizatio
JavaFX overview
Implications for Java 9
Compact strings
Pre-Java 9 status
New with Java 9
Merging selected Xerces 2.11.0 updates into JAXP
Updating JavaFX/Media to newer versioof GStreamer
HarfBuzz Font-Layout Engine
HiDPI graphics oWindows and Linux
Marligraphics renderer
Unicode 8.0.0
New iUnicode 8.0.0
Updated Classes iJava 9
Reserved stack areas for critical sections
The pre-Java 9 situation
New iJava 9
Dynamic linking of language-defined object models
Proof of concept
Additional tests for humongous objects iG1
Improving test-failure troubleshooting
Environmental information
Java process information
Optimizing string concatenatio
HotSpot C unit-test framework
Enabling GTK 3 oLinux
New HotSpot build system
Summary
Chapter 3: Java 9 Language Enhancements
Working with variable handlers
Working with the AtoMiC Toolkit
Using the sun.misc.Unsafe class
Eliding depreciatiowarnings oimport statements
Milling Project Coi
Using the @SafeVarargs annotation
The try-with-resource statement
Using the diamond operator
Discontinuing use of the underscore
Making use of private interface methods
Processing import statements correctly
Summary
Chapter 4: Building Modular Applications with Java 9
A modular primer
Reviewing Java's platform module system
……
Chapter 5: Migrating Applications to Java 9
Chapter 6: Experimenting with the Java Shell
Chapter 7: Leveraging the New Default G1 Garbage Collector
Chapter 8: Microbenchmarking Applications with JMH
Chapter 9: Making Use of the ProcessHandle API
Chapter 10: Fine-Grained Stack Tracing
Chapter 11: New Tools and Tool Enhancements
Chapter 12: Concurrency and Reactive Programming
Chapter 13: Security Enhancements
Chapter 14: Command Line Flags
Chapter 15: Best Practices IJava 9
Chapter 16: Future Directions