- Shopping Bag ( 0 items )
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:
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.
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.
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
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
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, java.sun.com, 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.
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.
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.
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.
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...
Posted January 28, 2001
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 NoThank you for your feedback. Report this reviewThank you, this review has been flagged.
Posted August 23, 2000
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 NoThank you for your feedback. Report this reviewThank you, this review has been flagged.