更新时间:2022-07-12 10:47:48
Coverpage
Title Page
Copyright
Java 9 Cookbook
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Installation and a Sneak Peek into Java 9
Introduction
Installing JDK 9 on Windows and setting up the PATH variable
How to do it...
Installing JDK 9 on Linux (Ubuntu x64) and configuring the PATH variable
Compiling and running a Java application
New features in Java 9
JEP 102 -- Process API updates
JEP 110 -- HTTP/2 client
JEP 213 -- milling project coin
JEP 222: jshell -- the Java shell (Read-Eval-Print Loop)
JEP 238 -- multi-release JAR files
JEP 266 -- more concurrency updates
Project Jigsaw
There's more...
Using new tools in JDK 9
jdeprscan
jdeps
jlink
jmod
JShell
Comparing JDK 8 and JDK 9
Fast Track to OOP - Classes and Interfaces
Implementing object-oriented design using classes
How it works...
Using inner classes
Using inheritance and composition to make the design extensible
Composition makes the design more extensible
Coding to an interface
Creating interfaces with default and static methods
Creating interfaces with private methods
Using enums to represent constant entities