The Java Tutorial, Second Edition: Object-Oriented Programming for the Internet (Book/CD) / Edition 2

Other Format (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 95%)
Other sellers (Other Format)
  • All (29) from $1.99   
  • New (4) from $18.39   
  • Used (25) from $1.99   
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any coupons and promotions
Seller since 2008

Feedback rating:



New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.


Ships from: fallbrook, CA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2015

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2015

Feedback rating:


Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Seller since 2008

Feedback rating:


Condition: New

Ships from: Chicago, IL

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Sort by


Follow your own path to expertise with this self-guided tour of the JavaTM programming language. Written by two members of the JavaSoft team at Sun Microsystems, the book employs a hands-on interactive approach to teaching Java basics, object-oriented concepts, applet programming, and everything else you need to know to become a proficient Java programmer.

Through a task-oriented, example-driven approach, The Java Tutorial introduces you to fundamental concepts and applications. Designed so that you can customize your own path through the specific information you need, the book explains the nuts and bolts of the language, applet construction, and the fundamental Java classes. You will also learn about more advanced topics such as creating a graphical user interface GUI, using multiple threads, and working with Java's networking capabilities.

This Second Edition has been extensively updated to cover API changes in Java 1.1 regarding UI, networking, and I/O, and to include the latest Java language developments. New and updated material includes:

  • broadcasting to other applications via a multicast socket
  • new I/O features, including character streams and object serialization
  • the latest developments in applet tags
  • using the 1.1 AWT event system
  • new language features, such as nested classes
  • tips for writing 100% Pure Java programs
  • updating 1.0 programs to use the 1.1 API
In addition, the Second Edition has been revised and reorganized to offer a stronger and more cohesive presentation, making this best-selling and award-winning book even better. The Tutorial now starts with a new lesson that introduces you to the Java phenomenon and provides a foundation for understanding the rest of the book.

The accompanying CD-ROM contains the Tutorial and all its code samples, versions of the Java Development KitTM JDK and the JDK documentation for each major platform, a 1.1-compatible version of the Swing/JFC package of GUI components, and the HotJavaTM Browser. The CD version of the Tutorial is a browser-friendly version thatincludes information not found in this book, such as draft lessons on internationalizing Java programs, calling non-Java libraries from Java programs, using the security API, developing JavaBeansTM components, and using the GUI components in the Swing/JFC package.

This self-paced Java language tutorial has been updated to include API changes in Java 1.1. Unlike other procedurally organized tutorials, this text is loosely organized in a hypertext style. The authors review object-oriented programming concepts, features and classes; they include details on Java language syntax, applet writing and essential Java classes. You will learn how to create user interfaces and how to work with graphics. It details networking concepts, URLs, sockets and datagrams. While notes and alerts steer you around trouble areas, many chapters conclude with a helpful section on common problems and solutions. The CD-ROM includes code samples, JDKs, API documentation, the HotJava browser, additional references and this publication in HTML.

Read More Show Less

Editorial Reviews

Uses a task-oriented, example-driven approach to introduce the fundamental concepts and applications of the Java programming language. More advanced topics such as creating a graphical user interface, using multiple threads, and Java's networking capabilities are also treated. The CD-ROM contains the contents of the book, all its code samples, versions of the Java Development Kit with documentation, and the HotJava Browser. Annotation c. by Book News, Inc., Portland, Or.
Read More Show Less

Product Details

  • ISBN-13: 9780201310078
  • Publisher: Addison-Wesley
  • Publication date: 3/5/1998
  • Series: Java Series
  • Edition description: Older Edition
  • Edition number: 2
  • Pages: 992
  • Product dimensions: 7.41 (w) x 9.22 (h) x 1.87 (d)

Meet the Author

Mary Campione, a technical writer on the JavaSoft team at Sun Microsystems, specializes in writing programmer&#39s documentation for emerging software technologies. Among her other books, she is co-author of PostScript by Example, which received a five-star rating from PC Report.

Kathy Walrath is a technical writer on the JavaSoft team, specializing in how-to guides for programmers. Previous to her experience with Java, she has written extensively about Unix, Mach, and NextStep.

Read More Show Less

Read an Excerpt


Since the release of the JDK 1.0.2 in May of 1996, the Java engineering team has been hard at work improving and enhancing the Java platform. We have been similarly laboring to update The Java Tutorial to reflect the work of the engineers. From the first page to the last, this edition now documents the APIs in JDK 1.1. We have fully integrated JDK 1.1 updates into the text, plus we've added coverage of some of the new features of 1.1 such as the new AWT event model, object serialization, and inner classes. We also added a new trail to the end of the book that provides a summary of what changed for 1.1, information to help you decide when to convert 1.0 programs to 1.1, and instructions about how to perform the conversion. And finally we've included a preview of what's likely to come in the next major release of the JDK.

Yet, this edition of The Java Tutorial is more than just an update of the previous edition. It's more polished and mature. We have rewritten, clarified, and reorganized many areas of the book based on feedback from readers and reviewers.

Like the first edition, this book is based on the online tutorial hosted at the Java Web site.


Read More Show Less

Table of Contents

Table of Contents

Trail Map

Getting Started
Lesson 1: The "Hello World" Application * Lesson 2: The "Hello World" Applet * Common Compiler and Interpreter Problems (and Their Solutions) * End of Trail

Writing Java Programs
Lesson 3: Object-Oriented Programming Concepts: A Primer * Lesson 4: The Nuts and Bolts of the Java Language * Lesson 5: Objects, Classes, and Interfaces * End of Trail

Writing Applets
Lesson 6: Overview of Applets * Lesson 7: Creating an Applet User Interface * Lesson 8: Communicating with Other Programs * Lesson 9: Understanding Applet Capabilities and Restrictions * Lesson 10: Finishing an Applet * Common Applet Problems (and Their Solutions) * End of Trail

Using the Core Java Classes
Lesson 11: The String and StringBuffer Classes * Lesson 12: Setting Program Attributes * Lesson 13: Using System Resources * Lesson 14: Handling Errors Using Exceptions * Lesson 15: Threads of Control * Lesson 16: Input and Output Streams * End of Trail

Creating a User Interface
Lesson 17: Overview of the Java UI * Lesson 18: Using Components, the GUI Building Blocks * Lesson 19: Laying Out Components Within a Container * Lesson 20: Working with Graphics * End of Trail

Custom Networking and Security
Lesson 21: Overview of Networking * Lesson 22: Working with URLs * Lesson 23: All About Sockets * Lesson 24: All About Datagrams * Lesson 25: Providing Your Own Security Manager * End of Trail

Integrating Native Methods into Java Programs
Lesson 26: Step By Step * Lesson 27: Implementing Native Methods * End of Trail

Appendix A: Code Examples * Appendix B: Reference


Example Index


Read More Show Less


Many excellent and varied histories of the Java language have been written. We will not attempt to record that history here, or even rewrite the history itself. Just let it be said "and unto James Gosling Java was born." From this birth came the need for the Java team to spread the word about this technology and teach people how to use it. And from that came the opportunity for us to write this tutorial.

From the beginning our intention has been to create an easy-to-read, fun, task-oriented tutorial with lots of practical examples that help people learn how to program in Java.

The first draft of the tutorial was made available on-line at our Web site,, in May 1995. This draft contained a few basic lessons on writing applets, the fundamentals of the language itself, and some key classes. Since then, the tutorial has grown to contain 7 trails containing 27 lessons covering topics ranging from applet communication to writing native methods.

We wanted to give customers early access to this material so that they could learn Java before any books were on the market. In the year after the tutorial first appeared on our Web site, we released several drafts of the tutorial to the Web site. Internet readers benefited from this early access, and so did we -- Internet readers helped us a great deal and improved the quality and usability of this tutorial by sending us feedback on our prose, examples, and style.

What Is Java?

The Java language and companion class libraries provide a portable, interpreted, high-performance, simple, object-oriented, development environment. The Java environment is suitable for programming tasks ranging in scope from dressing up your Web page to writing full-fledged, production-quality applications. The Java Language Environment: A White Paper, written by James Gosling and Henry McGilton, provides a thorough overview of the Java language and the Java development environment.

Who Should Read This Book?

This tutorial assumes that you have some programming experience, whether it be traditional procedural programming or object-oriented programming, and are familiar with programming tenets, terminology, and at least one high-level programming language.

Internet programmers, novice and experienced alike, will benefit from this book. The book begins by presenting you with two Java programs -- one application and one applet -- and shows you how to compile and run these programs. This first section also describes how these programs work.

From this hands-on beginning, you can follow your own course of learning. New programmers will want to read the book from beginning to end, including the beginning material on object-oriented concepts, the standard features of the Java language, and the object-oriented features of the Java language. Programmers experienced with procedural languages such as C may wish to skip the section that describes the standard features of Java and start with the material on object-oriented concepts and the object-oriented features of Java. Experienced object programmers may want to jump feet first into the trail on applets. No matter what type of programmer you are, you will find a path through this book that fits your learning requirements.

What You Need

As of press time, to compile and run the examples in this book you will need one of the following systems:
  • Solaris 2.3, 2.4, or 2.5 running on SPARC
  • Microsoft Windows NT/95 running on Intel (or compatible) x86
  • Macintosh System 7.5 on PowerPC or Motorola 68030 (or better)
You also need Java development tools, such as those provided in the Java Developers Kit (JDK). You can download the JDK from our Web site, or you can use the 1.0.2 version of the JDK that's on the CD-ROM accompanying this book.

If you are developing applets, you will need a Java-compatible browser, such as HotJava or Netscape 2.0, or an applet viewer such as the one that's included with the JDK. For information about the browsers and other applet viewers that are currently available, see the Web page for this book.

Finally, you need an editor that can save files in ASCII format with a .java extension. On Solaris, this means you can use your favorite editor: vi, emacs, textedit, or some other editor. On Windows NT/95 use NotePad or a similar editor. On a Macintosh use an editor such as BBEdit or SimpleText.


Of course, the Java team made everything possible by creating Java in the first place. But many individuals contributed to getting this book out the door.

A million thanks go to the Java team members who answered questions, reviewed material, and in some cases contributed examples -- all of this in the face of tight deadlines: Thomas Ball, Brenda Bowden, David Brown, Patrick Chan, Tom Chavez, David Connelly, Pavani Diwanji, Amy Fowler, Jim Graham, Herb Jellinek, Jonni Kanerva, Doug Kramer, Eugene Kuerner, Tim Lindholm, Ron Mandel, Henry McGilton, Marianne Mueller, Scott Rautmann, Benjamin Renaud, Hassan Schroeder, Richard Scorer, Sami Shaio, Arthur van Hoff, Frank Yellin, and Steve Zellers.

Painful though it may have been, our reviewers provided us with invaluable feedback on the manuscript: Mike Ballantyne, Richard Campione, Lee Collins, Greg Crisp, Matt Fahrner, Murali Ghanta, Bill Harts, Eileen Head, Murali Murugan, Roberto Quijalvo, Philip Resnik, Roger Riggs, Roman Rorat, Neil Sundaresan, Michael Weiss, the ones who preferred to remain anonymous, and all of the Internet readers who were kind enough to take the time to send us e-mail and let us know of problem areas.

Chris Warth spent several weeks writing scripts and filters to convert our complex web of HTML pages into MIF format and was most patient with us in spite of our demands and changes. Marsh Chamberlain designed and created our trail icons, and Jan Karrman provided us with the html2ps script, which we used to create PostScript files from HTML and print our first review copy of the manuscript. Nathan Walrath created the figure in the Trail Map section. When we both went on maternity leave after giving the book to Addison-Wesley, Randy Nelson served as our backup, taking care of the CD-ROM and the Web site for the tutorial.

The staff at Addison-Wesley -- Mike Hendrickson, Katie Duffy, Pamela Yee, and Marty Rabinowitz -- were professional, competent and courteous throughout the development of this book and provided us with guidance, encouragement, and instruction. They also managed the practical things like copyediting, page design, graphics, and reviewers so all we had to do was worry about content.

And finally, Lisa Friendly, The Java Series editor, our manager, and our friend, made this book possible by suggesting that we turn the online tutorial into a book. She kept us calm, reassured us often, and managed everything from our relationship with Addison-Wesley to consistency with other books in the series. Without her encouragement and hard work, this tutorial would not exist.

About the Dedication

Mary: This book is dedicated to Richard Campione for being my greatest friend and husband. He encourages, cajoles, counsels, prods, loves and believes in me, and makes me get out of bed in the morning.

Kathy: This book is dedicated to my husband, Nathan Walrath, who played Mr. Mom during the months when I couldn't help out much at home. He even helped with the content, drawing the trail map figure and providing insight into the animation section. This book is also dedicated to our daughter Laine and to the baby who's pushing up against my ribs as I write this. They both help me remember that there's more to life than work.

And now that we've delivered this book, we're taking some time off to deliver our other babies...

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted January 28, 2001

    Incredibly Intuitive book

    This book was incredibly intuitive to use. It seemed that whenever I had a question, the book was giving me the page that contained the answer. There were many methods in which the authors tied the information from one chapter to all of the related information througout the book, making it fast and easy to learn a topic. This book was also written in a simple language, but not 'dumbed' down. I have often found that when I buy a more advanced book, people feel the need to use confusing language makes the author sound smart, but makes reading the book a pain. I found none of that here! It was written to communicate information, and it does its job well. I recomend this book to anyone who wants to learn the web side of Java.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 23, 2000

    All you need to Start JAVA

    Dear Programmers, this book is really a not a good book ,but it is an ultimate book for the programmers and non-programmers. Any Programmer ,whether knowing C/C++, can make this book as handy and can atleast reach to the intermediate level in JAVA, ofcoarse one has to continue to explore JAVA, since it has lot many classes to be mastered. But for the starters it is really, really a good book , so enjoy and buy this book.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)