Described in Thinking in Java, 3rd edition. Very early release; book is still in formative stages. Revision history at start of book.
Historically, programming across multiple machines has been error-prone, difficult, and complex. The programmer had to know many details about the network and sometimes even the hardware. You usually needed to understand the various “layers” of the networking protocol, and there were a lot of different functions in each different networking library concerned with connecting, packing, and unpacking blocks of information; shipping those blocks back and forth; and handshaking. It was a daunting task.
However, the basic idea of distributed computing is not so difficult, and is abstracted very nicely in the Java libraries.
- Introduction to Objects
- Everything Is an Object
- Controlling Execution
- Initialization & Cleanup
- Access Control
- Reusing Classes
- Inner Classes
- Holding Your Objects
- Error Handling with Exceptions
- Type Information
- Containers in Depth
- Enumerated Types
- Graphical User Interfaces
Download the code
Go to the download site and download the file titled Thinking in Java, 3rd Edition by clicking on this link and requesting that your browser save the file.
Unzip the files into your directory. This will create a directory called “aaa-TIJ3-distribution” and extract into it two more zip files:
Unzip the TIJ-3rd-edition-code.zip file into the directory of your choice, which we’ll call code. This will automatically create all the necessary subdirectories and install the files into code
Set your CLASSPATH variable to include ‘.’ (the current directory) and the code directory.
Now you can use Sun’s JDK to compile and run the files. You can also automatically compile all the files using ant (see below).
To compile some of the files, you will need to have additional Java libraries installed — you are warned about this by messages emitted from the ant buildfile.
The electronic version of the book will continue to be free. You have permission to print a copy of the book for your own use, and to distribute the unmodified electronic version(s).