Java in a Nutshell, Deluxe Edition

Java in a Nutshell, Deluxe Edition

by David Flanagan, Patrick Niemeyer, Joshua Peck

Java in a Nutshell, Deluxe Edition is a Java programmer's dream come true in one small package. The heart of this Deluxe Edition is the Java Reference Library on CD-ROM, which brings together five volumes for Java developers and programmers, linking related info across books. It includes:Exploring Java, 2nd Edition, Java Language Reference, 2nd


Java in a Nutshell, Deluxe Edition is a Java programmer's dream come true in one small package. The heart of this Deluxe Edition is the Java Reference Library on CD-ROM, which brings together five volumes for Java developers and programmers, linking related info across books. It includes:Exploring Java, 2nd Edition, Java Language Reference, 2nd Edition,Java Fundamental Classes Reference, Java AWT Reference, and Java in a Nutshell, 2nd Edition, included both on the CD-ROM and in a companion desktop edition. Java in a Nutshell, Deluxe Edition is an indispensable resource for anyone doing serious programming with Java 1.1.The Java Reference Library alone is also available by subscription on the World Wide Web. Please see​javaref/ for details.The electronic text on the Web and on the CD is fully searchable and includes a complete index to all five volumes. It also includes the sample code found in the printed volumes.Exploring Java, 2nd Edition introduces the basics of Java 1.1 and offers a clear, systematic overview of the language. It covers the essentials of hot topics like Beans and RMI, as well as writing applets and other applications, such as networking programs, content and protocol handlers, and security managers.The Java Language Reference, 2nd Edition is a complete reference that describes all aspects of the Java language, including syntax, object-oriented programming, exception handling, multithreaded programming, and differences between Java and C/C++. The second edition covers the new language features that have been added in Java 1.1, such as inner classes, class literals, and instance initializers.The Java Fundamental Classes Reference provides complete reference documentation on the core Java 1.1 classes that comprise the java.lang,,, java.util,java.text, java.math, java.lang.reflect, packages. These classes provide general-purpose functionality that is fundamental to every Java application.The Java AWT Reference provides complete reference documentation on the Abstract Window Toolkit (AWT), a large collection of classes for building graphical user interfaces in Java.Java in a Nutshell, 2nd Edition, the bestselling book on Java and the one most often recommended on the Internet, is a complete quick-reference guide to Java, containing descriptions of all of the classes in the Java 1.1 core API, with a definitive listing of all methods and variables, with the exception of the still-evolving Enterprise APIs. These APIs will be covered in a future volume.Highlights of the library include:

  • History and principles of Java
  • How to integrate applets into the World Wide Web
  • A detailed look into Java's style of object-oriented programming
  • Detailed coverage of all the essential classes in java.lang,, java.util,, java.awt
  • Using threads
  • Network programming
  • Content and protocol handling
  • A detailed explanation of Java's image processing mechanisms
  • Material on graphics primitives and rendering techniques
  • Writing a security manager
System requirements: The CD-ROM is readable on all Windows and UNIX platforms. Current implementations of the Java Virtual Machine for the Mac platform do not support the Java search applet in this CD-ROM. Mac users can purchase the World Wide Web version (see​javaref/ for more information). A Web browser that supports HTML 3.2, Java, and JavaScript, such as Netscape 3.0 or Internet Explorer 3.0, is required.

Editorial Reviews

Doug Nickerson

Java in a Nutshell

David Flanagan's Java in a Nutshell has quality stamped on its cover and embedded in its acid-free paper. O'Reilly has a reputation for books with terse, accessible writing&emdash;and this book is no exception.

The book has 33 sections, a glossary, and an index. The first three sections introduce Java. The next six sections contain examples of applets, GUIs, I/O, networking, advanced graphics, and threads. The examples get gradually harder within the sections, but not necessarily from section to section. That's it, except for the "Java Language Reference," "API Reference," and "API Cross-Reference," and months of further study. All in all, I like the tone, topics, examples, level of detail, and the layout.

"How Java Differs From C" exhibits the tone of the book. Flanagan minces no words as he pursues packages, CLASSPATH, imports, types, objects, garbage collection, and exceptions from the point of view of a C programmer. Java is more like C than C++, he says.

The FileViewer example views a text file with the file name as a command-line parameter. It worked the first time. I converted FileViewer to an applet by adding an init() method and deleting main(). I converted the command-line parameter to a <PARAM> tag in an HTML file, and added the code to read in the file name as a String. This worked well with the AppletViewer under Windows 95, but the JDK on a Power Mac 6100 (Java Version 1.0b2) quit with a NullPointerException on the line loading the file name.

The GUI section introduces class InfoDialog, then adds a user response with Yes/No/Cancel buttons. This demonstrates use of a widget and response to events via an action() and answer() method. All the high-quality examples can be downloaded from

Java in a Nutshell is well laid out. The examples contain many cross-references, and the tabs on the page ends make locating sections easy. This is a detailed volume, with more in it than I can describe here&emdash;check out the section on Unicode.

There was a glitch in the book in Section 3, page 68, that incorrectly implied that you can overload methods by merely defining a method with a different return type (same name and parameters). After I read about this on the errata sheet on the web page, I looked for it in the other books. (Just Java makes the correct point very clearly, for example.)

I'm sure this book will meet the needs of programmers everywhere who want to get up to speed with Java.--Dr. Dobb's Electronic Review of Computer Books

Product Details

O'Reilly Media, Incorporated
Publication date:
In a Nutshell (O'Reilly) Series
Edition description:
Product dimensions:
6.99(w) x 9.13(h) x 1.38(d)

Meet the Author

David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and son in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a simple website at

Customer Reviews

Average Review:

Write a Review

and post it to your social network


Most Helpful Customer Reviews

See all customer reviews >