Cover
title | : | Special Edition Using Java 2 Standard Edition |
author | : | Keeton, Brian.; Cavaness, Chuck.; Friesen, Geoff. |
publisher | : | Pearson Education, Inc. |
isbn10 | asin | : | 0789724685 |
print isbn13 | : | 9780789724687 |
ebook isbn13 | : | 9780768656046 |
language | : | English |
subject | Java (Computer program language) |
publication date | : | 2001 |
lcc | : | QA76.73.J38K44 2001eb |
ddc | : | 005.13/3 |
subject | : | Java (Computer program language) |
Page i
Special Edition Using Java 2
Standard Edition
Brian Keeton
Chuck Cavaness
Geoff Friesen
C ONTENTS AT A G LANCE
Introduction | |
I The Java Language |
Object-Oriented Programming | |
HelloWorld: Your First Java Program | |
Data Types and Other Tokens | |
Methods and Exceptions | |
Using Expressions | |
Control Flow | |
Classes | |
Using Strings and Text | |
Interfaces | |
Data Structures and Java Utilities | |
Threads | |
II User Interface |
Introduction to Java Foundation Classes | |
Beginning AWT | |
Building a GUI: AWT Style | |
And Then There Was Swing | |
Building a GUI: Swing Style | |
Accessibility | |
Java 2D | |
Drag and Drop | |
Java Media Framework | |
III I/O |
Streams, Files, and Serialization | |
Object Serialization | |
Communications and Networking | |
Using Internationalization | |
JAR Files | |
IV Databases |
JDBC 2.0 Fundamentals | |
Advanced JDBC 2.0 | |
V Component Development |
Reflection | |
JavaBeans | 1001 |
Appendixes |
A Installing the SDK and Getting Started | 1027 |
B SDK Tools | 1037 |
C SDK 1.3 Performance Improvements | 1045 |
D Java Resources | 1055 |
Index | 1061 |
Page ii
S PECIAL E DITION U SING J AVA 2, S TANDARD E DITION
Copyright 2001 by Que Corporation
All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher. No patent liability is assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions. Nor is any liability assumed for damages resulting from the use of the information contained herein.
International Standard Book Number: 0-7897-2468-5
Library of Congress Catalog Card Number: 00-108362
Printed in the United States of America
First Printing: December 2000
02 01 00 4 3 2 1
T RADEMARKS
All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Que cannot attest to the accuracy of this information. Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark.
Java and JavaBeans are registered trademarks of Sun Microsystems, Inc.
W ARNING AND D ISCLAIMER
Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an ''as is" basis. The authors and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book.
Associate Publisher
Dean Miller
Acquisitions Editor
Todd Green
Development Editors
Victoria Elzey
Sean Dixon
Technical Editors
Mark Roth
Mike Stevenson
Alan Moffet
Managing Editor
Thomas F. Hayes
Project Editor
Linda Seifert
Copy Editor
Julie A. McNamee
Indexer
Erika Millen
Proofreader
Harvey Stanbrough
Team Coordinator
Cindy Teeters
Media Developer
Michael Hunter
Interior Designer
Ruth Lewis
Cover Designers
Dan Armstrong
Ruth Lewis
Editorial Assistant
Angela Boley
Production
Mark Walchle
Page iii
C ONTENTS
Introduction | |
This Book Is for You | |
How This Book Is Organized | |
Conventions Used in This Book | |
I The Java Language |
1 Object-Oriented Programming | |
Object-Oriented Programming: A Different Way of Thinking | |
A Short History of Programming | |
Procedural Languages | |
Structured Development | |
Object-Oriented Programming | |
A Lesson in Objects | |
Traditional Program Design | |
The OOP Way | |
Extending Objects Through Inheritance | |
Objects as Multiple Entities | |
Modularity and Code Organization |
Next page