Java in a Nutshell_ A Desktop Quick Reference 7th Edition.Pdf

(12700 KB) Pobierz
Playlists
Java in a Nutshell, Seventh Edition
History
by Ben Evans and David Flanagan
Topics
Copyright © 2019 Benjamin J. Evans and David Flanagan. All rights reserved.
Tutorials
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
Offers & Deals
O’Reilly books may be purchased for educational, business, or sales promotional use. Online
Highlights
editions are also available for most titles (http://oreilly.com/safari). For more information,
contact our corporate/institutional sales department: 800­998­9938 or corporate@oreilly.com.
Settings
Editor: Virginia Wilson
Support
Sign Out
Production Editor: Justin Billing
Copyeditor: Jasmine Kwityn
Proofreader: Rachel Monaghan
Indexer: WordCo Indexing Services, Inc.
Interior Designer: David Futato
Cover Designer: Karen Montgomery
Illustrator: Rebecca Demarest
December 2018: Seventh Edition
Revision History for the Seventh Edition
2018­11­30: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781492037255 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Java in a Nutshell, the
cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
The views expressed in this work are those of the authors, and do not represent the publisher’s
views. While the publisher and the authors have used good faith efforts to ensure that the
information and instructions contained in this work are accurate, the publisher and the authors
disclaim all responsibility for errors or omissions, including without limitation responsibility for
damages resulting from the use of or reliance on this work. Use of the information and
instructions contained in this work is at your own risk. If any code samples or other technology
this work contains or describes is subject to open source licenses or the intellectual property
rights of others, it is your responsibility to ensure that your use thereof complies with such
licenses and/or rights.
978­1­492­03725­5
[LSI]
History
Part I. Introducing Java
Topics
Part I is an introduction to the Java language and the Java platform. These chapters provide
enough information for you to get started using Java right away:
Chapter 1, Introduction to the Java Environment
Chapter 2, Java Syntax from the Ground Up
Tutorials
Offers & Deals
Highlights
Chapter 3, Object­Oriented Programming in Java
Chapter 4, The Java Type System
Settings
Support
Chapter 5, Introduction to Object­Oriented Design in Java
Chapter 6, Java’s Approach to Memory and Concurrency
Sign Out
Chapter 1. Introduction to the Java
Environment
Topics
History
Tutorials
Welcome to Java 11.
That version number probably surprises you as much as it does us. It seems like only yesterday
that Java 5 was the new thing, and yet here we are, 14 years and 6 major versions later.
You may be coming to the Java ecosystem from another language, or maybe this is your first
programming language. Whatever road you may have traveled to get here, welcome—we’re
glad you’ve arrived.
Java is a powerful, general­purpose programming environment. It is one of the most widely
used programming languages in the world, and has been exceptionally successful in business
and enterprise computing.
In this chapter, we’ll set the scene by describing the Java language (which programmers write
their applications in), the Java Virtual Machine (which executes those applications), and the
Java ecosystem (which provides a lot of the value of the programming environment to
development teams).
We’ll briefly cover the history of the Java language and virtual machine, before moving on to
discuss the lifecycle of a Java program and clear up some common questions about the
differences between Java and other environments.
At the end of the chapter, we’ll introduce Java security, and discuss some of the aspects of Java
that relate to secure coding.
Offers & Deals
Highlights
Settings
Support
Sign Out
The Language, the JVM, and the Ecosystem
The Java programming environment has been around since the late 1990s. It comprises the Java
language, and the supporting runtime, otherwise known as the Java Virtual Machine (JVM).
.
At the time that Java was initially developed, this split was considered novel, but recent trends
Zgłoś jeśli naruszono regulamin