(eBook) - Java - Thinking In Java, 3rd Edition.pdf

(5216 KB) Pobierz
Thinking in Java, 3rd Edition, Beta
Thinking in Java,
3 rd Edition, Beta
Bruce Eckel, President,
MindView, Inc.
Planet PDF brings you the Portable Document
Format (PDF) version of Thinking in Java. Planet
PDF is the premier PDF-related site on the web.
There is news, software, white papers, interviews,
product reviews, code samples, a forum, and
regular articles by many of the most prominent and
respected PDF experts in the world. Visit our sites
for more detail:
http://www.planetpdf.com/
http://www.pdfstore.com/
http://www.binarything.com/
Click here to buy the paper version
96629072.039.png 96629072.040.png 96629072.041.png 96629072.042.png 96629072.001.png 96629072.002.png 96629072.003.png 96629072.004.png 96629072.005.png
Note : This document requires the installation of the fonts Georgia,
Verdana and Andale Mono (code font) for proper viewing. These can be
found at:
http://sourceforge.net/project/showfiles.php?group_id=34153&release_id=105355
Modifications in Revision 3.0 (unreleased)
Reorganized chapters into their final form and numbering. Split
chapter 1 by moving “Analysis and design” to Chapter 16.
Modified the description of the chapters in the introduction. (This
needs to be revisited again.
Finished threading chapter. Dining philosophers problem added
to threading chapter.
Edited/rewrote chapters 1 - 11, 14 and Appendix A, B & D, which
went to production.
Added Applet Signing and Java Web Start sections to “Creating
Windows and Applets.”
Added examples showing threading in “Creating Windows and
Applets.”
Added improved access control to most classes (more private
fields, in particular).
Made general improvements throughout the code base.
Changed cleanup( ) to dispose( )
Changed “friendly” to “package access”
Changed “function” to “method” most places
Added Preferences API section
Removed Microsoft EULA (no longer needed for CD)
Rewrote c14:ShowAddListeners.java to use regular expressions;
refactored
Renamed “death condition” to “termination condition”
96629072.006.png 96629072.007.png 96629072.008.png 96629072.009.png 96629072.010.png 96629072.011.png 96629072.012.png 96629072.013.png
Modifications in Revision 2.0 (9/13/2002)
Completed part of the rewrite of the threading chapter. This
simplifies the introduction to threading and removes all the GUI
examples, so that the threading chapter may be moved to appear
earlier in the book.
Reorganized material into reasonably final form, and assigned
chapter numbers. Chapters may still migrate.
Finished com.bruceeckel.simpletest framework and
integrated all test-instrumented examples back into the main
book. Added prose for testing system in Chapter 15. Also updated
most examples in book to reflect improvements in testing system.
Note: we are still refactoring this code to make it simpler. Stay
tuned.
Added sections on JDK 1.4 assertions, including design-by-
contract, to chapter 15.
Added JUnit introduction and example to chapter 15.
Changed “static inner class” to “nested class.”
Modified c04:Garbage.java so it wouldn’t fail on fast machines,
added description.
Moved BangBean2.java into the GUI chapter, since the non-
GUI threading chapter will now appear before the GUI chapter.
Modifications in Revision 1.0 (7/12/2002):
Changed to email-based BackTalk system, which is much simpler
to use and may be used while reading the document offline.
Added “Testing and Debugging” chapter, currently numbered 15.
This includes a simple testing system and an introduction to
JUnit, as well as a thorough introduction to Logging and an
introduction to using debuggers and profilers.
Added test framework to examples in the book. Not all examples
are fully tested yet, but most are at least executed. Comment flags
96629072.014.png 96629072.015.png 96629072.016.png 96629072.017.png 96629072.018.png 96629072.019.png 96629072.020.png 96629072.021.png
on examples indicate the testing status of each. Significant change:
program output is displayed and tested directly in the source, so
readers can see what the output will actually be.
Change to Ant as the build tool, added package statements to
disambiguate duplicate names so Ant won’t complain. Running
Ant on the book not only compiles but also runs the
aforementioned tests.
HTML is now generated by a new tool called LogicTran
( http://www.Logictran.com ) . Still learning to use this one, so early
versions will be a bit rough.
Replaced Thread Group section in multithreading chapter.
Removed JNI appendix (available in the electronic 2 nd edition on
the CD or via download from www.MindView.net)
Removed Jini section (available in the electronic 2 nd edition on the
CD or via download from www.MindView.net)
Removed Corba section (available in the electronic 2 nd edition on
the CD or via download from www.MindView.net) after talking to
Dave Bartlett (Corba & XML expert), who observed that Corba has
gone quiet and everyone has gone up a level to the use of XML for
system integration instead of Corba.
Made a number of technical corrections suggested over the last 2
years. Most suggestions have been archived but not made yet.
Todo:
Add “cloud of teachers, mentors, consultants” re: Larry’s
suggestion
Check for double spaces in text, replace ( ) with ( ), correct em-
dashes – with —
Preface
Index
96629072.022.png 96629072.023.png 96629072.024.png 96629072.025.png 96629072.026.png 96629072.027.png 96629072.028.png 96629072.029.png
Thinking
in
Third Edition
Bruce Eckel
President, MindView, Inc.
Java
96629072.030.png 96629072.031.png 96629072.032.png 96629072.033.png 96629072.034.png 96629072.035.png 96629072.036.png 96629072.037.png 96629072.038.png
Zgłoś jeśli naruszono regulamin