Java in a Nutshell, second edition by David Flanagan Here are the changes that were made in the 12/98 reprint: {17} the line "set CLASSPATH .;C:\...." now has an equals sign, like this: "set CLASSPATH=.;C:\...." (Note that this is for the second CLASSPATH line only; do not change the first one.) {23} Under Primitive Data Types section, line 5: Changed the following sentence: In Java, all variables have guaranteed default values, though the compiler may warn you in places where you rely, accidentally, or not, on these default values. to The same is true in Java; the Java compiler does not let you write code that uses uninitialized local variables. Note, however,that the fields of Java objects do not have garbage values; they are automatically initialized to standard default values. {31} 6 line code roughly in the middle of the page. The second last line of code: triangle[i][j] = (short) i+j; now reads triangle[i][j] = (short) (i+j); (31) end of the last paragraph, added this sentence: "As in C, Java arrays are zero-based (the first element is element 0, not 1)." {36} Under "The switch statement", 3rd sent.: removed "long" from the italicized list (47) Changed the following: "Before running a synchronized instance method, Java obtains a lock on the instance that invoked the method, ..." to "Before running a synchronized instance method, Java obtains a lock on the object, ..." (74) Example 3-14, changed the following line: "private boolean check_radius(double r) { return (r <= MAXR); }" to "private static boolean check_radius(double r) { return (r <= MAXR); }" (77), in the paragraph immediately after Example 3-16, added the following sentence: "Interface methods are also all implicitly public." (Note "public" is in constant width.) (91) para. 5, line -1: "printer use" now reads "printer to use" {103} Changed the footnote to read: Unfortunately, in Java 1.1 there are compiler bugs that prevent access to the \f(CWprivate\fR fields and methods of enclosing classes from working correctly. This bug has been fixed in Java 1.2. ("\f(CW" and "\fR" indicate that the intervening text is in constant width font.) {104} Changed the following line in Example 5-1: "public interface Linkable {" to "public static interface Linkable {" {247} first example: % jar cvf my.jar *.java images now reads % jar cvf my.jar *.class images {358} In the desription of java.awt.event.WindowEvent, under "WINDOW_CLOSED", "destroy()" now reads "dispose()"