Concentrates on topics helpful to programmers making the transition to Java and provides detailed examples of those topics. The primary focus of this manual explores the Java inner classes mechanism, reflection, and the collection classes. Updated to cover the key API's and enhancements to the JDK 1. Examples build from the simple to the complex and show how to take advantage of Java 1.2 multireading, exception handling, security, and networking capabilities. Annotation c. by Book News, Inc., Portland, Or.
"synopsis" may belong to another edition of this title.
JERRY R. JACKSON has worked with object-oriented technology since 1984. He has developed tools and applications using a variety of object-oriented systems, including LOOPS, Flavors, CLOS, C++, and now Java. After helping to develop Sun Microsystems' Java-based system management software, he moved to ChannelPoint Inc. where he is currently working on distributed enterprise applications in Java.
ALAN MCCLELLAN is an award-winning writer with over 12 years experience in the computer industry. He is also co-author of Automating Solaris Installations and the series editor for Prentice Hall's Essential Java book series. He is currently a senior information products developer for ChannelPoint, Inc.
Now in its third edition, Java by Example 1.2 is the book programmers turn to for practical examples of elegant, readable, and maintainable Java code. Updated to cover the new key APIs and enhancements to the JDK 1.2, it includes new chapters on inner classes, reflection and collection classes, and even more of the examples that made the previous editions bestsellers.
Jackson and McClellan illustrate all of the key features of the Java language and show you how to develop both applications and applets. The examples build from the simple to the complex and are carefully annotated to show you how to take advantage of Java 1.2 multithreading, exception handling, security, and networking capabilities.
Step-by-step descriptions lead you through the design and development of a sophisticated application. Along the way you will learn valuable techniques that you can immediately apply to your own projects whether you're creating Web-based applets or robust, client-server applications.
CD-ROM includes source code for all of the examples in the book, ready to run on Solaris™ or Windows.
Get started quickly with real applications!
Key topics covered include:
* Memory and constructors
* Input/Output
* Threads
* Exception handling
* Forms and components
* Animation
* Native methods
* Romote Methods (RMI)
* JDBC
* Inner classes
* Reflection
* Collection classes
Preface
Why We Are Here
The Java language is maturing and growing by leaps and bounds. With that maturation and growth, we've found more than enough new material to sink our teeth into with this edition of Java by Example. Our approach has never been to explore every nook and cranny of the Java language. Rather, we've tried to concentrate on topics that we deem to have the greatest utility for programmers making the transition to Java and to provide fairly detailed examples of those topics. Our primary focus in this edition is to explore the Java inner classes mechanism, reflection, and the collection classes. We'll try to help burgeoning Java programmers comprehend the utility of these in practical use. Where appropriate, we also try to show powerful programming techniques enabled by Java.
We'll also revisit Java native methods. In light of the Java Native Interface (JNI) introduced in the JDK, there's now a much more formal and clean way to interface Java applications with existing programs than with the original native methods mechanism.
Two areas of focus that, to our dismay, caused some confusion in the previous edition, namely the Java Remote Method Invocation (RMI) mechanism and the Java Database Connectivity (JDBC), will receive a slight make-over in this new edition. The last time around, we worked with pre-release versions of RMI and JDBC. However, we were confounded by the fact that the implementations for those parts of the language changed between the pre-release and the official JDK release. With many apologies to users miffed by our attempt to bet on the stability of the pre-release, we'll revisit these two key features of the language.
Although we update our applets portion of Java by Example, we are consciously not taking on the scope of changes in the JDK 1.2 Abstract Windowing Toolkit (awt). There is simply too much there to try to cover in a book adequately. In reality, the best way to grasp the complexities of the AWT is to read Graphic Java, which comprehensively covers the awt.
The structure of the book is consistent with previous editions. Part 1 covers basics of the Java language, showing how to implement standard programming constructs such as reading and writing to a file, declaring arrays, allocating and initializing memory, using the Java RMI and JDBC, and so on. Part 2 covers basics of applet writing, specifically for programmers who are concentrating on programs that will run within a web browser. Part 3 covers a myriad of useful details that don't really fit with the focus of the first two parts. Audience
This is not a book about authoring on the world-wide web, writing common-gateway interface (CGI) scripts, or maintaining web servers. This is a book for intermediate to experienced programmers interested in learning Java. Because of the sheer number of C and C++ programmers ready to make the transition to Java, we pay special attention to Java as it relates to C and C++. For Mac Programmers
There seems to be some confusion in the Macintosh community, from which we've had requests for Mac editions of Java by Example. This is actually counter to one of the great advantages of Java—it's platform independence. Granted, there are some restrictions on the Macintosh, namely, the 31 character file name limit imposed by MacOS. To address this issue, we've provided the compiled programs in zip format for easy execution on the Mac.We hope these modifications ease use of this material by the Mac programming community.
Meanwhile, to keep an eye on Java updates for Mac OS, check out apple/macos/java/For C Programmers
For C programmers who are coming to an object-oriented (OO) language for the first time, we provide an appendix that discusses the essential constructs used in object-oriented programming. Note, however, that this discussion is simply an introduction to OO as it relates to Java. There are several books and courses dedicated to OO programming, and novice OO programmers may want to consult some of these for more information.Internet Sources of Information
There are several online sources of information on Java.To subscribe, send mail to majordomo@xcf.berkeley. The subject must be blank, and the body of email must be the following:
subscribe advanced-java
end
From these newsgroups, mail aliases, and web sites, you'll be able to locate countless other resources, tutorials, Frequently-Asked-Questions (FAQs), and online magazines dedicated to Java.
For updates about this book and information about other books in the Sun Press Java Series, look on the web at:sun/books/java_series.htmlApplets, Applications, and Programming Aids
The CD that accompanies this book includes several Java programs that you can use, modify, or simply study to help you learn the language. These programs include:
Applets that show simple to complex use of the Java graphics library, multiple threads, and multimedia.
Applications that show basic input/output, interfaces, memory use, and more.
Programs such as a public class parser that you can use to extract information about Java classes or your program's classes. We provide these as simple aids you can use to better learn and understand the Java language.
Many of these programs are discussed throughout the book, but some are presented simply for you to examine, play with, or mimic. Feel free to borrow or adapt these for your own purposes. Java by Example CD Contents
The CD accompanying this book includes the applets and applications referred to within this book, as illustrated in Table P-3. These are stored in the Code.zip file. Table P-3 CD Contents
Directory
Contents
applets This directory contains several sample applets, including the supporting audio and image files in .au and .gif format, respectively. This directory also includes sample HTML files that can be used to view the applets with the Java appletviewer.
applications This directory contains several illustrative Java applications, some of which are described in the book, some of which are just provided for your use.
classes.zip The applet and application class files referred to in the book in zip format.
You do not have to copy the CD contents to run the applications and applets on it. To run the programs from the CD, extract the Code.zip file, set the CLASSPATH environment variable to point to the Java Development Kit classes.zip file and the Java by Example classes.zip file on the CD.
"About this title" may belong to another edition of this title.
US$ 3.75 shipping within U.S.A.
Destination, rates & speedsSeller: HPB-Red, Dallas, TX, U.S.A.
Paperback. Condition: Good. Connecting readers with great books since 1972! Used textbooks may not include companion materials such as access codes, etc. May have some wear or writing/highlighting. We ship orders daily and Customer Service is our top priority! Seller Inventory # S_290292153
Quantity: 1 available
Seller: medimops, Berlin, Germany
Condition: good. Befriedigend/Good: Durchschnittlich erhaltenes Buch bzw. Schutzumschlag mit Gebrauchsspuren, aber vollständigen Seiten. / Describes the average WORN book or dust jacket that has all the pages present. Seller Inventory # M00130796697-G
Quantity: 1 available
Seller: Books Puddle, New York, NY, U.S.A.
Condition: New. pp. 558 3rd Edition. Seller Inventory # 263112891
Quantity: 1 available
Seller: Majestic Books, Hounslow, United Kingdom
Condition: New. pp. 558. Seller Inventory # 5816420
Quantity: 1 available
Seller: Biblios, Frankfurt am main, HESSE, Germany
Condition: New. pp. 558. Seller Inventory # 183112881
Quantity: 1 available