更新时间:2021-08-13 15:22:24
封面
Title Page
Copyright and Credits
Java 11 Cookbook Second Edition
Packt Upsell
Why subscribe?
Packt.com
Contributors
About the authors
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Get in touch
Reviews
Installation and a Sneak Peek into Java 11
Introduction
Installing JDK 18.9 on Windows and setting up the PATH variable
How to do it...
Installing JDK 18.9 on Linux (Ubuntu x64) and configuring the PATH variable
Compiling and running a Java application
What's new in Java 11?
JEP 318 – Epsilon
JEP 321 – HTTP Client (Standard)
JEP 323 – Local-Variable Syntax for Lambda Parameters
JEP 333 – ZGC
New API
There's more...
Using application class-data sharing
Fast Track to OOP - Classes and Interfaces
Implementing object-oriented design (OOD)
How it works...
Using inner classes
Using inheritance and aggregation
Aggregation makes the design more extensible
Coding to an interface
Creating interfaces with default and static methods
Creating interfaces with private methods
A better way to work with nulls using Optional
Using the utility class Objects
Modular Programming
Using jdeps to find dependencies in a Java application
Creating a simple modular application
Creating a modular JAR