System, but they may not be reproduced for publication



Yüklə 83 Mb.
Pdf görüntüsü
səhifə4/82
tarix19.04.2023
ölçüsü83 Mb.
#106251
1   2   3   4   5   6   7   8   9   ...   82
Java A Beginner’s Guide, Eighth Edition ( PDFDrive )

feature releases) to be just six months. As a result, JDK 10 was released in March 2018,
which is six months after the release of JDK 9. This more rapid release cadence enables
new features and improvements to be quickly available to Java programmers. Instead
of waiting two or more years, when a new feature is ready, it becomes part of the next
scheduled release.
The primary new language feature added by JDK 10 was support for local variable type
inference. With local variable type inference, it is now possible to let the type of a local
variable be inferred from the type of its initializer, rather than being explicitly specified.
To support this new capability, the context­sensitive identifier var was added to Java as
a reserved type name. Type inference can streamline code by eliminating the need to
redundantly specify a variable’s type when it can be inferred from its initializer. It can
also simplify declarations in cases in which the type is difficult to discern or cannot be
explicitly specified. Local variable type inference has become a common part of the
contemporary programming environment. Its inclusion in Java helps keep Java up­to­
date with evolving trends in language design. Along with a number of other changes,
JDK 10 also redefined the Java version string, changing the meaning of the version
numbers so they better align with the new time­based release schedule.
At the time of this writing, the latest version of Java is Java SE 11 (JDK 11). It was
released in September 2018, which is six months after JDK 10. The primary new


language feature in JDK 11 is its support for the use of var in a lambda expression.
Also, another execution mode was added to the Java launcher that enables it to directly
execute simple single­file programs. JDK 11 also removes some features. Perhaps of
greatest interest, because of its historical significance, is the removal of support for
applets. Recall that applets were first deprecated by JDK 9. With the release of JDK 11,
applet support has been removed. Support for another deployment­related technology
called Java Web Start has also been removed from JDK 11. There is one other high­
profile removal in JDK 11: JavaFX. This GUI framework is no longer part of the JDK,
becoming a separate open­source project instead. Because these features have been
removed from the JDK, they are not discussed in this book.
One other point about the evolution of Java: Beginning in 2006, the process of open­
sourcing Java began. Today, open­source implementations of the JDK are available.
Open sourcing further contributes to the dynamic nature of Java development. In the
final analysis, Java’s legacy of innovation is secure. Java remains the vibrant, nimble
language that the programming world has come to expect.
The material in this book has been updated through JDK 11. As the preceding
discussion has highlighted, however, the history of Java programming is marked by
dynamic change. As you advance in your study of Java, you will want to watch for new
features of each subsequent Java release. Simply put: The evolution of Java continues!
HOW THIS BOOK IS ORGANIZED
This book presents an evenly paced tutorial in which each section builds upon the
previous one. It contains 16 chapters, each discussing an aspect of Java. This book is
unique because it includes several special elements that reinforce what you are
learning.
Key Skills & Concepts
Each chapter begins with a set of critical skills that you will be learning.
Self Test
Each chapter concludes with a Self Test that lets you test your knowledge. The answers
are in 
Appendix A
.
Ask the Expert


Sprinkled throughout the book are special “Ask the Expert” boxes. These contain
additional information or interesting commentary about a topic. They use a
Question/Answer format.
Try This Elements
Each chapter contains one or more Try This elements, which are projects that show you
how to apply what you are learning. In many cases, these are real­world examples that
you can use as starting points for your own programs.
NO PREVIOUS PROGRAMMING EXPERIENCE
REQUIRED
This book assumes no previous programming experience. Thus, if you have never
programmed before, you can use this book. If you do have some previous programming
experience, you will be able to advance a bit more quickly. Keep in mind, however, that
Java differs in several key ways from other popular computer languages. It is important
not to jump to conclusions. Thus, even for the experienced programmer, a careful
reading is advised.
REQUIRED SOFTWARE
To compile and run all of the programs in this book, you will need the latest Java
Development Kit (JDK), which, at the time of this writing, is JDK 11. This is the JDK for
Java SE 11. Instructions for obtaining the Java JDK are given in 
Chapter 1
.
If you are using an earlier version of Java, you will still be able to use this book, but you
won’t be able to compile and run the programs that use Java’s newer features.
DON’T FORGET: CODE ON THE WEB
Remember, the source code for all of the examples and projects in this book is available
free of charge on the Web at 
www.oraclepressbooks.com
.
SPECIAL THANKS
Special thanks to Danny Coward, the technical editor for this edition of the book.
Danny has worked on several of my books, and his advice, insights, and suggestions


have always been of great value and much appreciated.
FOR FURTHER STUDY

Yüklə 83 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9   ...   82




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©genderi.org 2024
rəhbərliyinə müraciət

    Ana səhifə