Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
This first book in a series by the originators of the Java language is the K&R of Java. Not only does it consciously follow
the style and organization of The C Programming Language, it is analogous in other ways as well: it provides a definition of a language written by the people who know it best. And
it does so without being formal or strictly complete. Java programmers will find it indispensable.
Like their predecessors, Arnold and Gosling start with "Hello, world." (Beware of the typo in the code on page 1: Line 3 should
read System.out.println("Hello, world");.) They then move through classes, objects, controls, threads and types. However, the authors go beyond just defining the
Java language. They also explain how to use Java -- and use it well. The book covers good programming and design as well as
the limitations of the language.
Each example is shown with good software engineering in mind, and with the particulars detailed clearly. For example, in the
following excerpt, the authors explain why local data should be protected from change by outside methods: "Making fields private
and adding methods to set and fetch them enables you to add actions that may be needed in the future. If programmers can access
a class's fields directly, you have no control over what values they will use or what happens when values are changed." They
then go on to explain Java's limitations and implementation in a straightforward fashion, and with a wry sense of humor: "You
can extend the RuntimeException and Error classes yourself to create your own unchecked exceptions.... The only reason you
should know this is so that you can be warned against doing it." On the whole, in fact, this book is surprisingly well-written
and readable. Many of the examples -- such as this one describing the interface -- are cleverly written:
interface Shimmer extends FloorWax, DessertTopping {
double amazing Price();
}
Even if you don't get the old "Saturday Night Live" reference, the technical point remains clear. And if you do get the joke,
the humor may spur you on.
Even more entertaining are the authors' insider stories about how key features of the language were worked out. For example, Arnold and Gosling describe some of the potential conflicts inherent in multiple inheritance and how they got around them. The reader is left with a fuller understanding of the language for this additional material.
One caveat: The authors' treatment of such a wide range of subjects (from syntax to language design issues) within the Java language makes for a slightly uneven book. And the book won't make much sense to you if you don't know anything about object-oriented programming. Then again, the writers don't always seem certain of who their readers are. For instance, in a paragraph about comments in the code, they write, "The English-like things scattered through the code are comments". That's like Einstein writing out the equations for relativity, then saying, "That little '2' in the corner means it's squared." Fortunately, this sort of split personality is infrequent and doesn't really diminish the usefulness of the book.