This thorough reference reads like a helpful friend. Includes servlets, Swing, and more.
Table of Contents Back Cover
Synopsis by Rebecca Rohan Java 2: The Complete Reference blends the expertise found in Java 1: The Complete Reference with Java 2 topics such as "servlets" and "Swing." As before, there's help with Java Beans and migrating from C++ to Java. A special chapter gives networking basics and breaks out networking-related classes. This book helps you master techniques by doing as well as reading. Projects include a multi-player word game with attention paid to network security. The book is updated where appropriate throughout, and the rhythm of text, code, tables, and illustrations is superb. It's a valuable resource for the developer who is elbow-deep in demanding projects.
Table of Contents Java 2 Preface - 7
Part l The Java Language
- The Complete Reference - 4
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 hapter 10
- The Genesis of Java - 9 - An Overview of Java - 20 - Data Types, Variables, and Arrays - 36 - Operators - 57 - Control Statements - 75 - Introducing Classes - 94 - A Closer Look at Methods and Classes - 111 - Inheritance - 134 - Packages and Interfaces - 156 - Exception Handling - 174
Chapter 11 - Multithreaded Programming - 188 Chapter 12 - I/O, Applets, and Other Topics - 214 Part ll The Java Library
Chapter 13 - String Handling - 235 Chapter 14 - Exploring java.lang - 255 Chapter 15 - java.util Part 1: The Collections Framework - 297 Chapter 16 - java.util Part 2: More Utility Classes - 343
Chapter 17 - Input/Output: Exploring java.io - 362 Chapter 18 - Networking - 397 Chapter 19 - The Applet Class - 426 Chapter 20 - Event Handling - 443 Chapter 21 - Introducing the AWT: Working with Windows, Graphics, and Text - 466 Chapter 22 - Using AWT Controls, Layout Managers, and Menus - 499 Chapter 23 - Images - 543 Chapter 24 - Additional Packages - 568 Part lll Software Development Using Java
Chapter 25 - Java Beans - 582 Chapter 26 - A Tour of Swing - 601 Chapter 27 - Servlets - 616 Chapter 28 - Migrating from C++ to Java - 641 Part lV Applying Java
Chapter 29 - The DynamicBillboard Applet - 659 Chapter 30 - ImageMenu: An Image-Based Web Menu - 683 Chapter 31 - The Lavatron Applet: A Sports Arena Display - 689 Chapter 32 - Scrabblet: A Multiplayer Word Game - 696 Appendix A - Using Java’s Documentation Comments - 739
Back Cover Master Java with the most comprehensive all-in-one tutorial/reference available, now completely updated for the Java 2 specification. Top programming experts Patrick Naughton and Herbert Schildt show you everything you need to know to develop, compile, debug and run Java applications and applets. Inside you'll find a complete description of the Java language, its class libraries, and its development environment. With clear descriptions, hundreds of practical examples, and expert techniques, this is a book that no Java programmer should be without. With this book, you'll: • • • • • • • Master the Java language and its core libraries Create portable Java applets and applications Fully utilize the Abstract Window Toolkit (AWT) Supercharge your programs using multiple threads Effectively apply Java's networking classes Create servlets, draw images, and develop Java Beans Migrate code from C++ to Java
Plus, you'll find details on new Java 2 features, including: • • • • The powerful collections framework The Swing component set The Java threading model The numerous methods, classes, and interfaces found throughout the API About the Authors Patrick Naughton is currently the chief technology office for Infoseek Corporation. He is the founding member of the original Sun Microsystems
project team that developed Java. Herbert Schildt is a leading...