[JAVA][Java 8 Recipes, 2nd Edition].pdf
(
8007 KB
)
Pobierz
www.it-ebooks.info
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
www.it-ebooks.info
Contents at a Glance
About the Author ................................................................................................................xli
About the Technical Reviewers ........................................................................................xliii
Acknowledgments .............................................................................................................
xlv
Introduction .....................................................................................................................
xlvii
Chapter 1: Getting Started with Java 8 .............................................................................1
Chapter 2: New Features of Java 8..................................................................................29
Chapter 3: Strings............................................................................................................49
Chapter 4: Numbers and Dates ........................................................................................65
Chapter 5: Object-Oriented Java .....................................................................................97
Chapter 6: Lambda Expressions ....................................................................................133
Chapter 7: Data Structures and Collections ..................................................................153
Chapter 8: Input and Output ..........................................................................................187
Chapter 9: Exceptions and Logging ...............................................................................207
Chapter 10: Concurrency ...............................................................................................223
Chapter 11: Debugging and Unit Testing .......................................................................249
Chapter 12: Unicode, Internationalization, and Currency Codes ...................................263
Chapter 13: Working with Databases ............................................................................283
Chapter 14: JavaFX Fundamentals ................................................................................331
Chapter 15: Graphics with JavaFX ................................................................................405
Chapter 16: Media with JavaFX .....................................................................................445
v
www.it-ebooks.info
CONTENTS AT A GLANCE
Chapter 17: JavaFX on the Web .....................................................................................473
Chapter 18: Nashorn and Scripting ...............................................................................505
Chapter 19: E-mail.........................................................................................................527
Chapter 20: XML Processing .........................................................................................537
Chapter 21: Networking ...............................................................................................553
Chapter 22: Security ......................................................................................................571
Index .................................................................................................................................579
vi
www.it-ebooks.info
Introduction
The
Java programming language was introduced in 1995 by Sun Microsystems. Derived from languages such as
C and C++, Java was designed to be more intuitive and easier to use than older languages, specifically due to its
simplistic object model and automated facilities such as memory management. At the time, Java drew the interest
of developers because of its object oriented, concurrent architecture; its excellent security and scalability; and
because applications developed in the Java language could run on any operating system that contained a Java Virtual
Machine (JVM). Since its inception, Java has been described as a language that allows developers to “write once, run
everywhere” as code is compiled into class
files
that contain bytecode, and the resulting class
files
can run on any
compliant JVM.
This
concept made Java an immediate success for desktop development, which later branched off into
different technological solutions over the years, including development of web-based applications and rich Internet
applications (RIAs). Today, Java is deployed on a broad range of devices, including mobile phones, printers, medical
devices, Blu-ray players, and so on.
The
Java platform consists of a hierarchy of components, starting with the Java Development Kit (JDK), which
is composed of the Java Runtime Environment (JRE), the Java programming language, and platform tools that are
necessary to develop and run Java applications.
The
JRE contains the Java Virtual Machine (JVM), plus the Java
application programming interfaces (APIs) and libraries that assist in the development of Java applications.
The
JVM
is the base upon which compiled Java class
files
run and is responsible for interpreting compiled Java classes and
executing the code. Every operating system that is capable of running Java code has its own version of the JVM. To that
end, the JRE must be installed on any system that will be running local Java desktop or stand-alone Java applications.
Oracle provides JRE implementations for most of the major operating systems. Each operating system can have its
own
flavor
of the JRE. For instance, mobile devices can run a scaled down version of the full JRE that is optimized
to run Java Mobile Edition (ME) and Java SE embedded applications.
The
Java platform APIs and libraries are a
collection of predefined classes that are used by all Java applications. Any application that runs on the JVM makes
uses the Java platform APIs and libraries.
This
allows applications to use the functionality that has been predefined
and loaded into the JVM and leaves developers with more time to worry about the details of their specific application.
The
classes that comprise the Java platform APIs and libraries allow Java applications to use one set of classes in order
to communicate with the underlying operating system. As such, the Java platform takes care of interpreting the set
of instructions provided by a Java application into operating system commands that are required for the machine on
which the application is being executed.
This
creates a facade for Java developers to write code against so that they can
develop applications that can be written once and ran on every machine that contains a relevant JVM.
The
JVM and the Java platform APIs and libraries play key roles in the lifecycle of every Java application. Entire
books have been written that explore the platform and JVM.
This
book focuses on the Java language itself, which is
used to develop Java applications, although the JVM and Java platform APIs and libraries are referenced as needed.
The
Java language is a robust, secure, and modern object oriented language that can be used to develop applications
to run on the JVM.
The
Java programming language has been refined over several iterations and it becomes more
powerful, secure, and modern with each new release.
This
book covers many features of the Java programming
language from those that were introduced in Java 1.0 through those that made their way to the language in Java 8.
In 2014, Oracle Corporation released Java 8, which was another milestone release for the Java ecosystem. Not only was
Java already the most modern, statically typed, object oriented language available for development, but Java 8 adds
important new enhancements to the language, such as lambda expressions, streams processing, and default methods.
JavaFX 8 was also released at the same time, advancing desktop Java applications more than ever. JavaFX 8 can be
used for developing rich desktop and Internet applications using the Java language, or any other language that runs
xlvii
www.it-ebooks.info
Plik z chomika:
nimtiz
Inne pliki z tego folderu:
[HTML][HTML5 Canvas. Graphics. Animation and Game Development].pdf
(29804 KB)
[CSS][CSS3 Foundations].pdf
(23466 KB)
[JAVASCRIPT][Professional AngularJS].pdf
(21169 KB)
[HTML][HTML5 Foundations].pdf
(32597 KB)
[JAVASCRIPT][Beginning JavaScript Charts].pdf
(19671 KB)
Inne foldery tego chomika:
Books
Fruity Loops
Prywatne
Virtual Machines
Workout Books
Zgłoś jeśli
naruszono regulamin