did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780201703931

The Java Tutorial A Short Course on the Basics

by ; ;
  • ISBN13:

    9780201703931

  • ISBN10:

    0201703939

  • Edition: 3rd
  • Format: Paperback
  • Copyright: 2000-12-28
  • Publisher: Addison-Wesley Professional
  • View Upgraded Edition
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $54.99
We're Sorry.
No Options Available at This Time.

Summary

Based on the online version that has become one of the world's most visited programmer documentation sites, this is a remarkably clear, practical, hands-on introduction to the Java 2 Platform. The bonus CD-ROM contains all major versions of the Java Platform.

Author Biography

Mary Campione was formerly a senior technical writer at Sun Microsystems, where she started writing about the Java platform in 1995. Mary graduated from California Polytechnic, San Luis Obispo, with a B.S. in Computer Science and has worked as both a technical writer and programmer. Kathy Walrath is a senior technical writer on the Swing team at Sun Microsystems. After graduating from the University of California, Berkeley, with a B.S. in Electrical Engineering and Computer Science, Kathy wrote extensively about Unix, Mach, and NextStep. Since 1993, Kathy has been writing specifications and how-to guides for the Java platform.

Alison Huml is a technical writer at Sun Microsystems, where she joined The Java Tutorial team in 1997 and also works with the Security team. Alison received her B.A. in English from the University of California, Berkeley, and is currently pursuing her master's degree in Computer Science at Mills College.



0201703939AB11062003

Table of Contents

Preface ix
Getting Started
1(44)
About the Java Technology
2(5)
How Will Java Technology Change My Life?
7(1)
First Steps (Win32)
8(8)
First Steps (UNIX/Linux)
16(8)
First Steps (MacOS)
24(8)
A Closer Look at Hello World
32(9)
Questions and Exercises
41(2)
Code Samples
43(2)
Object-Oriented Programming Concepts
45(20)
What Is an Object?
46(2)
What Is a Message?
48(1)
What Is a Class?
49(3)
What Is Inheritance?
52(2)
What Is an Interface?
54(1)
How Do These Concepts Translate into Code?
55(6)
Summary
61(1)
Questions and Exercises
62(1)
Code Samples
63(2)
Language Basics
65(54)
Variables
67(9)
Operators
76(18)
Expressions, Statements, and Blocks
94(5)
Control Flow Statements
99(18)
Code Samples
117(2)
Object Basics and Simple Data Objects
119(58)
The Life Cycle of an Object
120(12)
Characters and Strings
132(17)
Numbers
149(16)
Arrays
165(9)
Code Samples
174(3)
Classes and Inheritance
177(50)
Creating Classes
178(26)
Managing Inheritance
204(14)
Implementing Nested Classes
218(6)
Code Samples
224(3)
Interfaces and Packages
227(16)
Creating and Using Interfaces
228(6)
Creating and Using Packages
234(8)
Code Samples
242(1)
Handling Errors Using Exceptions
243(26)
What Is an Exception?
244(1)
The Catch or Specify Requirement
245(1)
Catching and Handling Exceptions
246(9)
Specifying the Exceptions Thrown by a Method
255(1)
How to Throw Exceptions
255(5)
Runtime Exceptions---The Controversy
260(1)
Advantages of Exceptions
260(5)
Summary of Exceptions
265(1)
Questions and Exercises
266(2)
Code Samples
268(1)
Threads: Doing Two or More Tasks at Once
269(44)
What Is a Thread?
271(2)
Using the Timer and TimerTask Classes
273(4)
Customizing a Thread's run Method
277(4)
The Life Cycle of a Thread
281(5)
Understanding Thread Priority
286(5)
Synchronizing Threads
291(10)
Grouping Threads
301(6)
Summary of Threads
307(2)
Questions and Exercises
309(1)
Code Samples
310(3)
I/O: Reading and Writing
313(38)
Overview of I/O Streams
314(4)
Using the Streams
318(16)
Object Serialization
334(6)
Working with Random Access Files
340(5)
And the Rest
345(1)
Summary of Reading and Writing
346(1)
Questions and Exercises
346(2)
Code Samples
348(3)
User Interfaces That Swing
351(40)
Overview of the Swing API
352(1)
Your First Swing Program
353(3)
Example Two: SwingApplication
356(5)
Example Three: CelsiusConverter
361(3)
Example Four: LunarPhases
364(4)
Example Five: VoteDialog
368(7)
Layout Management
375(3)
Threads and Swing
378(3)
Visual Index to Swing Components
381(6)
Summary
387(1)
Questions and Exercises
388(2)
Code Samples
390(1)
Appendix A Common Problems and Their Solutions 391(16)
Getting Started Problems
391(5)
General Programming Problems
396(1)
Applet Problems
397(2)
User Interface Problems
399(8)
Appendix B Internet-Ready Applets 407(60)
Overview of Applets
409(10)
AWT Components
419(4)
Taking Advantage of the Applet API
423(19)
Practical Considerations of Writing Applets
442(12)
Finishing an Applet
454(3)
Swing-Based Applets
457(6)
Code Samples
463(4)
Appendix C Collections 467(60)
Introduction
468(2)
Interfaces
470(38)
Implementations
508(7)
Algorithms
515(5)
Custom Implementations
520(3)
Interoperability
523(4)
Appendix D Deprecated Thread Methods 527(8)
Why Is Thread. stop Deprecated?
527(3)
Why Are Thread. suspend and Thread. resume Deprecated?
530(3)
What about Thread. destroy?
533(1)
Why Is Runtime. runFinalizersOnExit Deprecated?
534(1)
Appendix E Reference 535(10)
Java Programming Language Keywords
535(1)
Operator Precedence
536(1)
The <APPLET> Tag
537(2)
POSIX Conventions for Command Line Arguments
539(1)
Integrated Development Environments
540(1)
Path Help
540(5)
Index 545

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Excerpts

Since the release of the Java Development Kit in May of 1995, the engineering team at Sun Microsystems has been hard at work improving and enhancing the Java platform. We have been similarly laboring to updateThe Java Tutorialto reflect the work of the engineers.From the first page to the last, this edition now documents the APIs in the Java 2 SDK, Standard Edition, v 1.3. We have fully integrated SDK 1.3 updates into the text, plus we've added questions and exercises to help you practice what you learn. To help beginners avoid many common mistakes, an entire chapter is devoted to programming problems and their solutions. Convenient summaries at the end of each section are also new to this edition.Like the first and second editions, this book is based on the online tutorial hosted at Sun Microsystem's Web site for the Java platform.http://java.sun.com/docs/books/tutorial/index.htmlLike the online version, this book reflects the latest advances in Java technology. Unlike the online version, this book solely focuses on the APIs needed by most beginning to intermediate programmers. Once you've mastered the material in this book, you can explore the rest of the Java platform on the Web site.Our intent has always been to create a fun, easy-to-read, task-oriented programmer's guide with lots of practical examples to help people learn to program. Who Should Read This Book?The book is geared towards both novice and experienced programmers. New programmerscan benefit most by reading the book from beginning to end, including the step by step instructions for compiling and running your first program in Getting Started (page 1). Programmers experienced with procedural languagessuch as C may wish start with the material on object-oriented concepts and features of the Java programming language. Experienced object programmersmay want to jump feet first into more advanced trails, such as those on applets, essential classes, or user interfaces.No matter what type of programmer you are, you can find a path through this book that fits your learning requirements. How to Use This BookThis book is designed so that you can either read it straight through or skip around from topic to topic. Whenever a topic is discussed in another place, you'll see a link to that place in the tutorial. Links are underlined and are followed by page numbers, like this: What Can Java Technology Do? (page 5).All the sample code used in this book is available online and on the accompanying CD. The CD icon in the margin indicates that the code is available. At the end of each chapter there is also a "Code Sample" section with a table that specifies the locations of the examples on the CD and online.We're dedicated to keeping this book up-to-date with the most current information. To learn what's new since this book went to press, visit the following URL: http://java.sun.com/docs/books/tutorial/books/3e/index.html 0201703939P04062001

Rewards Program