learning_java_5e.pdf

(14498 KB) Pobierz
h
ft n
Fi itio
Ed
Learning
Java
An Introduction to Real-World Programming
with Java
Marc Loy,
Patrick Niemeyer
& Daniel Leuck
FIFTH EDITION
An Introduction to Real-World
Programming with Java
Learning Java
Marc Loy, Patrick Niemeyer, and Daniel Leuck
Beijing
Boston Farnham Sebastopol
Tokyo
Learning Java
by Marc Loy, Patrick Niemeyer, and Daniel Leuck
Copyright © 2020 Marc Loy, Patrick Niemeyer, Daniel Leuck. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional
sales department: 800-998-9938 or
corporate@oreilly.com.
Acquisitions Editor:
Suzanne McQuade
Developmental Editor:
Amelia Blevins
Production Editor:
Beth Kelly
Copyeditor:
Sonia Saruba
Proofreader:
Christina Edwards
May 2000:
July 2002:
May 2005:
June 2013:
March 2020:
First Edition
Second Edition
Third Edition
Fourth Edition
Fifth Edition
Indexer:
Angela Howard
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
Revision History for the Fifth Edition
2020-03-27:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781492056270
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Learning Java,
the cover image, and
related trade dress are trademarks of O’Reilly Media, Inc.
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-05627-0
[LSI]
Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1.
A Modern Language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Enter Java
Java’s Origins
Growing Up
A Virtual Machine
Java Compared with Other Languages
Safety of Design
Simplify, Simplify, Simplify…
Type Safety and Method Binding
Incremental Development
Dynamic Memory Management
Error Handling
Threads
Scalability
Safety of Implementation
The Verifier
Class Loaders
Security Managers
Application and User-Level Security
A Java Road Map
The Past: Java 1.0–Java 11
The Present: Java 14
The Future
Availability
2
2
3
4
7
10
11
12
13
13
14
15
15
16
17
19
19
20
21
21
23
25
25
iii
Zgłoś jeśli naruszono regulamin