| ★ wanayoo — archive 1999 http://developer.java.sun.com/developer/codesamples/ | Nouvelle recherche | Portail wanayoo |
![]() |
|
|
|
|
|
|
|
|
|
|
|
|
|
Examplets from The Java Developers Almanac 1999Copyright 1999 Addison-Wesley"Examplets" are code snippets designed to illustrate a particular task using the smallest amount of code possible. Their main purpose is to show you which classes and members are involved in the described task and generally how they interact with each other. Blue italicized text in an examplet indicates the parts that should be replaced if you use it in your program. In some cases, an examplet may have sufficient detail for you to use directly; in other cases, you may have to look up the involved classes in another reference book for more information. The Almanac includes a comprehensive cross-reference of all the entire Java 2 Platform APIs which is useful for determining where a class or member comes from. The closest online resource for this task is the Java 2 Platform API index. If the code of an examplet throws a checked exception, the code is surrounded by a try/catch statement. However, to reduce space and distraction, the catch clause is left blank. Such catch clauses should always handle the exception in some way and should never be left blank. At the very least, you should include a call to e.printStackTrace() to display the exception on the console.
Order this book from Amazon
There are currently 250 examplets in this collection. My plan is to eventually include several thousand. If there are examplets that you would see or if you have any comments or suggestions please send them to almanac@xeo.com. I probably won't be able to respond to all messages but I will definitely read and consider each one. Thanks, Patrick Chan Read a feature story on this book All examplets copyright 1999 Patrick Chan and Addison-Wesley.
THE INFORMATION PROVIDED IN THE JAVA DEVELOPER'S CONNECTION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR, AND NON-INFRINGEMENT. THIS INFORMATION IS PROVIDED AT NO CHARGE. BY USE OF THE INFORMATION YOU AGREE THAT NEITHER SUN MICROSYSTEMS, INC. NOR ITS LICENSORS WILL BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF SUN OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. THIS INFORMATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN. SUN MICROSYSTEMS, INC. MAY MAKE IMPROVEMENTS AND OTHER CHANGES IN THE PRODUCTS AND THE PROGRAMS DESCRIBED HEREIN AT ANY TIME WITHOUT NOTICE. |
|
|
||
|
Community Discussion | Industry News | Solutions Marketplace | Case Studies |
||
|
|
||
| Glossary - Applets - Tutorial - Employment - Business & Licensing - Java Store - Java in the Real World | ||
|
|
||
|