This 2nd edition of Java Examples in a Nutshell contains 164 complete practical examples: over 17,900 lines of densely commented, professionally written Java code covering 20 distinct Java APIs, including Servlets, JSP, XML, Swing and Java2D. It covers:
AWTAppletsCryptographyDatatransfer
Drag-n-DropInput/OutputI18NJDBC
JSPJava2DNetworkingPrinting
RMIReflectionSecuritySerialization
ServletsSwingThreadsXML

Buy The Book

The examples are most useful with the explanation and context provided by the book. You can buy it (or read more about it) at: amazon.com.

Download the Examples

The complete source code for all 164 examples is available in two formats:

The second edition of the book contains modified versions of most, but not all, of the examples from the first edition of the book. If you want the original version of the first edition examples, you can download those separately:

Commercial Use

As explained in the license, The examples are free for non-commercial use. If you want to use them commercially, however, you must purchase a license for them. See the instructions here.