The Java Tutorial: A Short Course on the Basics, 3/e (Paperback)

Mary Campione, Kathy Walrath, Alison Huml

  • 出版商: Addison-Wesley Professional
  • 出版日期: 2001-01-07
  • 定價: USD $54.99
  • 售價: $199
  • 語言: 英文
  • 頁數: 592
  • 裝訂: Paperback
  • ISBN: 0201703939
  • ISBN-13: 9780201703931

限量商品 (庫存=2)

買這商品的人也買了...

產品描述


Description

The new edition of this popular book is updated to reflect v1.3 of the Java 2 Platform, Standard Edition as well as preceding versions as early as JDK 1.1, and includes Solaris, Linux and Win32. This new version is also streamlined—to cover the topics most needed—and includes questions and exercises at the end of each chapter (with answers on the CD). The authors' top-notch instruction is still present. Through a task-oriented, example-driven approach, the authors introduce students to fundamental concepts and applications. The book's unique, theme-based structure allows the flexibility to customize your own path through the specific information. To help beginners avoid many common mistakes, an entire chapter is devoted to programming problems and their solutions. The CD-ROM comes packed full of useful resources: a complete online tutorial of this book and the 2 other tutorial books, all major versions of the Java platform, versions 1.0.2 through 1.3 for the Solaris and Win32 platforms. The CD also includes the latest Java platform for Linux (Standard Edition v1.3) API documentation for the Java platform and source code for all examples.

Back to Top


Appropriate Courses

Java--Intermediate Programming, Java--Intro to Programming/CSI.

Back to Top


Table Of Contents

Preface.
1. Getting Started.
About the Java Technology.
How Will Java Technology Change My Life?
First Steps (Win32).
A Checklist.
Creating Your First Application.
Creating Your First Applet.
Error Explanations (Win32).
First Steps (UNIX/Linux).
A Checklist.
Creating Your First Application.
Creating Your First Applet.
Error Explanations (UNIX/Linux).
First Steps (MacOS).
A Checklist.
Creating Your First Application.
Creating Your First Applet.
Error Explanation (MacOS).
A Closer Look at HelloWorld.
Explanation of an Application.
The Anatomy of an Applet.
Code Samples.

2. Object-Oriented Programming Concepts.
What Is an Object?
What Is a Message?
What Is a Class?
What Is Inheritance?
What Is an Interface?
How Do These Concepts Translate into Code?
Summary.
Code Samples.

3. Language Basics.
Variables.
Operators.
Expressions, Statements, and Blocks.
Control Flow Statements.
Code Samples.

4. Object Basics and Simple Data Objects.
The Life Cycle of an Object.
Characters and Strings.
Numbers.
Arrays.
Code Samples.

5. Classes and Inheritance.
Creating Classes.
Managing Inheritance.
Implementing Nested Classes.
Code Samples.

6. Interfaces and Packages.
Creating and Using Interfaces.
Creating and Using Packages.
Code Samples.

7. Handling Errors Using Exceptions.
What Is an Exception.
The Catch or Specify Requirement.
Catching and Handling Exceptions.
Specifying the Exceptions Thrown by a Method.
How to Throw Exceptions.
Runtime Exceptions - The Controversy.
Advantages of Exceptions.
Summary of Exceptions.
Questions and Exercises.
Code Samples.

8. Threads: Doing Two or More Tasks at Once.
What Is a Thread?
Using the Timer and TimerTask Classes.
Customizing a Thread's run Method.
The Life Cycle of a Thread.
Understanding Thread Priority.
Synchronizing Threads.
Grouping Threads.
Summary of Threads.
Questions and Exercises: Threads.
Code Samples.

9. I/O: Reading and Writing.
Overview of I/O Streams.
Using the Streams.
Object Serialization.
Working with Random Access Files.
And the Rest. . . .
Summary of Reading and Writing.
Questions and Exercises: Reading and Writing.
Code Samples.

10. User Interfaces that Swing.
Swing Overview.
Your First Swing Program.
Example Two: SwingApplication.
Example Three: CelsiusConverter.
Example Four: TravelWeather.
Example Five: Dialog Example.
Extras.
Look & Feel.
Layout Management.
Threads and Swing.
Supporting Assistive Technologies.
Visual Index to Swing Components.
Summary.
Questions and Exercises.

11. Applets for the Internet and Intranet.
Overview of Applets.
AWT Components.
Taking Advantage of the Applet API.
Practical Considerations of Writing Applets.
Finishing an Applet.
For More Information.
Questions and Exercises.

Appendix A. Common Problems and Their Solutions.
Getting Started Problems.
General Programming Problems.
Applet Problems.
User Interface Problems.

Appendix B. Collections.
Introduction.
Interfaces.
Implementations.
Algorithms.
Custom Implementations.
Interoperability.

Appendix C. Deprecated Thread Methods.
Why Is Thread.stop Deprecated?
Why Are Thread.suspend and Thread.resume Deprecated?
What about Thread.destroy?
Why Is Runtime.runFinalizersOnExit Deprecated?

Appendix D. Reference.
Java Programming Language Keywords.
Operator Precedence.
The APPLET Tag.
POSIX Conventions for Command-Line Arguments.
Integrated Development Environments.
Classpath Help.

Index. 0201703939T04062001



Back to Top