introduction.html

来自「java 是一个很好的网络开发环境。由于它是通过解释的方法」· HTML 代码 · 共 824 行 · 第 1/4 页

HTML
824
字号
there are some cases where it’s unavoidable to teach the old approach
before the new, in particular with the AWT, since not only is there a lot of old
Java 1.0 code out there, but some platforms still support only Java 1.0. I will
try to be scrupulous about pointing out which features belong to which
version.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">One thing you&#8217;ll notice is
that I don&#8217;t use the sub-revision numbers. At this writing, the released
version of 1.0 from Sun was 1.02 and the released version of 1.1 was 1.1.5 (Java
1.2 was in beta). In this book I will refer to <A NAME="Index19"></A>Java 1.0,
Java 1.1<A NAME="Index20"></A> and Java 1.2 only<A NAME="Index21"></A>, to guard
against typographical errors produced by further sub-revisioning of these
products.</FONT><A NAME="_Toc408018380"></A><BR></P></DIV>
<A NAME="Heading13"></A><FONT FACE = "Verdana"><H2 ALIGN="LEFT">
Seminars and mentoring</H2></FONT>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">My company provides five-day,
hands-on, public and in-house
<A NAME="Index22"></A><A NAME="Index23"></A><A NAME="Index24"></A>training
seminars based on the material in this book. Selected material from each chapter
represents a lesson, which is followed by a monitored exercise period so each
student receives personal attention. The lectures and slides for the
introductory seminar are also captured on CD-ROM to provide at least some of the
experience of the seminar without the travel and expense. For more information,
go to:</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia"><B><I>http://www.BruceEckel.com</I></B></FONT><BR><FONT FACE="Georgia">or
email:</FONT><BR><FONT FACE="Georgia"><B>Bruce@EckelObjects.com</B></FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">My company also provides consulting
services to help guide your project through its development cycle &#8211;
especially your company&#8217;s first Java project.
</FONT><A NAME="_Toc312373779"></A><A NAME="_Toc375545185"></A><A NAME="_Toc408018381"></A><BR></P></DIV>
<A NAME="Heading14"></A><FONT FACE = "Verdana"><H2 ALIGN="LEFT">
Errors<BR><A NAME="Index25"></A><A NAME="Index26"></A><A NAME="Index27"></A></H2></FONT>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">No matter how many tricks a writer
uses to detect errors, some always creep in and these often leap off the page
for a fresh reader. If you discover anything you believe to be an error, please
send the original source file (which you can find at
<B><I>http://www.BruceEckel.com</I></B>) with a clearly commented error
(following the form shown on the Web page) and suggested correction via
electronic mail to <B>Bruce@EckelObjects.com</B> so that it might be fixed in
the electronic version on the Web site and in the next printing of the book.
When you submit a correction, please use the following format:</FONT><BR></P></DIV>
<OL>
<LI><FONT FACE="Georgia">	Put &#8220;TIJ Correction&#8221; (and nothing
else) as the subject line &#8211; this way my email program can route it to the
right directory.</FONT><LI><FONT FACE="Georgia">	In the body of your
email, please use the form:</FONT></OL>
<BLOCKQUOTE><FONT SIZE = "+1"><PRE>find: one-line string to search <font color=#0000ff>for</font>
comment:
multi-line comment, best starting with <font color=#004488>"here's how I think it should read"</font>
###</PRE></FONT></BLOCKQUOTE><DIV ALIGN="LEFT"><P><FONT FACE="Georgia">&#160;</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Where the &#8216;###&#8217; is to
indicate the end of comment. This way, my correction tools can do a
&#8220;find&#8221; using the original text, and your suggested correction will
pop up in a window next to it.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Suggestions for additional
exercises or requests to cover specific topics in the next edition are welcome.
Your help is
appreciated.</FONT><A NAME="_Toc312373780"></A><A NAME="_Toc375545186"></A><A NAME="Acknowledgements"></A><A NAME="_Toc408018382"></A><BR></P></DIV>
<A NAME="Heading15"></A><FONT FACE = "Verdana"><H2 ALIGN="LEFT">
Note on the cover design</H2></FONT>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">The cover of <I>Thinking in
Java</I> is inspired by the American Arts &amp; Crafts Movement, which began
near the turn of the century and reached its zenith between 1900 and 1920. It
began in England as a reaction to both the machine production of the Industrial
Revolution and the highly ornamental style of the Victorian era. Arts &amp;
Crafts emphasized spare design, the forms of nature as seen in the art nouveau
movement, hand-crafting, and the importance of the individual craftsperson, and
yet it did not eschew the use of modern tools. There are many echoes with the
situation we have today: the impending turn of the century, the evolution from
the raw beginnings of the computer revolution to something more refined and
meaningful to individual persons, and the emphasis on software craftsmanship
rather than just manufacturing code. </FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">I see Java in this same way: as an
attempt to elevate the programmer away from an operating-system mechanic and
towards being a &#8220;software craftsman.&#8221;</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Both the author and the book/cover
designer (who have been friends since childhood) find inspiration in this
movement, and both own furniture, lamps and other pieces that are either
original or inspired by this period. </FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">The other theme in this cover
suggests a collection box that a naturalist might use to display the insect
specimens that he or she has preserved. These insects are objects, placed within
the box objects which are themselves placed within the &#8220;cover
object,&#8221; which illustrates the fundamental concept of aggregation in
object-oriented programming. Of course, a programmer cannot help but make the
association with &#8220;bugs,&#8221; and here the bugs have been captured and
presumably killed in a specimen jar, and finally confined within a small display
box, as if to imply Java&#8217;s ability to find, display and subdue bugs (which
is truly one of its most powerful
attributes).</FONT><A NAME="_Toc408018383"></A><BR></P></DIV>
<A NAME="Heading16"></A><FONT FACE = "Verdana"><H2 ALIGN="LEFT">
Acknowledgements</H2></FONT>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">First of all, thanks to the Doyle
Street Cohousing Community for putting up with me for the two years that it took
me to write this book (and for putting up with me at all). Thanks very much to
Kevin and Sonda Donovan for subletting their great place in gorgeous Crested
Butte, Colorado for the summer while I worked on the book. Also thanks to the
friendly residents of Crested Butte and the Rocky Mountain Biological Laboratory
who made me feel so welcome. The World Gym in Emeryville and its enthusiastic
staff helped keep me sane during the final months of the book.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">This is my first experience using
an agent, and I&#8217;m not looking back. Thanks to Claudette Moore at Moore
Literary Agency for her tremendous patience and perseverance in getting me
exactly what I wanted.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">My first two books were published
with Jeff Pepper as editor at Osborne/McGraw-Hill. Jeff appeared at the right
place and the right time at Prentice-Hall and has cleared the path and made all
the right things happen to make this the most pleasant publishing experience
I&#8217;ve ever had. Thanks, Jeff &#8211; it means a lot to me.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">I&#8217;m especially indebted to
Gen Kiyooka and his company Digigami, who have graciously provided my Web
server, and to Scott Callaway who has maintained it. This has been an invaluable
aid while I was learning about the Web.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Thanks to Cay Horstmann (co-author
of <I>Core Java</I>, Prentice Hall 1997<I>)</I>, D&#8217;Arcy Smith (Symantec),
and Paul Tyma (co-author of <I>Java Primer Plus</I>, The Waite Group 1996), for
helping me clarify concepts in the language.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Thanks to people who have spoken in
my Java track at the Software Development Conference, and students in my
seminars, who ask the questions I need to hear in order to make the material
more clear.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Special thanks to Larry and Tina
O&#8217;Brien, who turned this book and my seminar into a teaching CD ROM. (You
can find out more at <I>http://www.BruceEckel.com</I>.)</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Lots of people sent in corrections
and I am indebted to them all, but particular thanks go to: Kevin Raulerson
(found tons of great bugs), Bob Resendes (simply incredible), John Pinto, Joe
Dante, Joe Sharp (all three were fabulous), David Combs (many grammar and
clarification corrections), Dr. Robert Stephenson, Franklin Chen, Zev Griner,
David Karr, Leander A. Stroschein, Steve Clark, Charles A. Lee, Austin Maher,
Dennis P. Roth, Roque Oliveira, Douglas Dunn, Dejan Ristic, Neil Galarneau,
David B. Malkovsky, Steve Wilkinson, and a host of others. </FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Prof. Ir. Marc Meurrens put in a
great deal of effort to publicize and make the book available in
Europe.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">There have been a spate of smart
technical people in my life who have become friends and have also been both
influential and unusual in that they&#8217;re vegetarians, do yoga and practice
other forms of spiritual enhancement, which I find quite inspirational and
instructional. They are Kraig Brockschmidt, Gen Kiyooka and Andrea Provaglio,
who helps in the understanding of Java and programming in general in
Italy.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">It&#8217;s not that much of a
surprise to me that understanding Delphi helped me understand Java, since there
are many concepts and language design decisions in common. My Delphi friends
provided assistance by helping me gain insight into that marvelous programming
environment. They are Marco Cantu (another Italian &#8211; perhaps being steeped
in Latin gives one aptitude for programming languages?), Neil Rubenking (who
used to do the yoga/vegetarian/Zen thing but discovered computers) and of course
Zack Urlocker, a long-time pal whom I&#8217;ve traveled the world
with.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">My friend Richard Hale Shaw&#8217;s
insights and support have been very helpful (and Kim&#8217;s, too). Richard and
I spent many months giving seminars together and trying to work out the perfect
learning experience for the attendees. Thanks also to KoAnn Vikoren, Eric
Faurot, Deborah Sommers, Julie Shaw, Nicole Freeman, Cindy Blair, Barbara
Hanscome, Regina Ridley, Alex Dunne, and the rest of the cast and crew at
MFI.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">The book design, cover design, and
cover photo were created by my friend Daniel Will-Harris, noted author and
designer (<I>http://www.Will-Harris.com</I>), who used to play with rub-on
letters in junior high school while he awaited the invention of computers and
desktop publishing, and complained of me mumbling over my algebra problems.
However, I produced the camera-ready pages myself, so the typesetting errors are
mine. Microsoft<SUP>&reg;</SUP> Word 97 for Windows was used to write the book
and to create camera-ready pages. The body typeface is <I>Bitstream Carmina
</I>and the headlines are in <I>Bitstream Calligraph 421
</I>(<I>www.bitstream.com</I>). The symbols at the start of each chapter are
<I>Leonardo Extras</I> from P22 (<I>http://www.p22.com</I>). The cover typeface
is <I>ITC Rennie Mackintosh.</I></FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">Thanks to the vendors who supplied
me with compilers: Borland, Microsoft, Symantec, Sybase/Powersoft/Watcom, and of
course, Sun.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">A special thanks to all my teachers
and all my students (who are my teachers as well). The most fun writing teacher
was Gabrielle Rico (author of <I>Writing the Natural Way</I>, Putnam 1983).
I&#8217;ll always treasure the terrific week at Esalen.</FONT><BR></P></DIV>
<DIV ALIGN="LEFT"><P><FONT FACE="Georgia">The supporting cast of friends
includes, but is not limited to: Andrew Binstock, Steve Sinofsky, JD
Hildebrandt, Tom Keffer, Brian McElhinney, Brinkley Barr, Bill Gates at
<I>Midnight Engineering Magazine</I>, Larry Constantine and Lucy Lockwood, Greg
Perry, Dan Putterman, Christi Westphal, Gene Wang, Dave Mayer, David
Intersimone, Andrea Rosenfield, Claire Sawyers, more Italians (Laura Fallai,
Corrado, Ilsa, and Cristina Giustozzi), Chris and Laura Strand, the Almquists,
Brad Jerbic, Marilyn Cvitanic, the Mabrys, the Haflingers, the Pollocks, Peter
Vinci, the Robbins Families, the Moelter Families (and the McMillans), Michael
Wilk, Dave Stoner, Laurie Adams, the Cranstons, Larry Fogg, Mike and Karen
Sequeira, Gary Entsminger and Allison Brody, Kevin Donovan and Sonda Eastlack,
Chester and Shannon Andersen, Joe Lordi, Dave and Brenda Bartlett, David Lee,
the Rentschlers, the Sudeks, Dick, Patty, and Lee Eckel, Lynn and Todd, and
their families. And of course, Mom and Dad.</FONT><BR></P></DIV>

<DIV ALIGN="CENTER">
    <FONT FACE="Verdana" size = "-1">
     [ <a href="Foreword.html">Previous Chapter</a> ] 
    [ <a href="SimpleContents.html">Short TOC</a> ] 
    [ <a href="Contents.html">Table of Contents</a> ] 
    [ <a href="DocIndex.html">Index</a> ]
     [ <a href="Chapter01.html">Next Chapter</a> ] 
    </FONT>
    <BR>
 Last Update:02/04/2000</P></DIV>

</BODY>

</HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?