Java Examples in a Nutshell, 3rd Edition
Publisher: O'Reilly Media
Final Release Date: January 2004
Pages: 722

The author of the best-selling Java in a Nutshell has created an entire book of real-world Java programming examples that you can learn from. If you learn best "by example," this is the book for you.This third edition covers Java 1.4 and contains 193 complete, practical examples: over 21,900 lines of densely commented, professionally written Java code, covering 20 distinct client-side and server-side APIs. It includes new chapters on the Java Sound API and the New I/O API. The chapters on XML and servlets have been rewritten to cover the latest versions of the specifications and to demonstrate best practices for Java 1.4. New and updated examples throughout the book demonstrate many other new Java features and APIs.Java Examples in a Nutshell is a companion volume to Java in a Nutshell, Java Foundation Classes in a Nutshell, and Java Enterprise in a Nutshell. It picks up where those quick references leave off, providing a wealth of examples for both novices and experts. This book doesn't hold your hand; it simply delivers well-commented working examples with succinct explanations to help you learn and explore Java and its APIs.Java Examples in a Nutshell contains examples that demonstrate:

  • Core APIs, including I/O, New I/O, threads, networking, security, serialization, and reflection
  • Desktop APIs, highlighting Swing GUIs, Java 2D graphics, preferences, printing, drag-and-drop, JavaBeans, applets, and sound
  • Enterprise APIs, including JDBC (database access), JAXP (XML parsing and transformation), Servlets 2.4, JSP 2.0 (JavaServer Pages), and RMI
The book begins with introductory examples demonstrating structured and object-oriented programming techniques for new Java programmers. A special index at the end of the book makes it easy to look up examples that use a particular Java class or accomplish a desired task. In between, each chapter includes exercises that challenge readers and suggest further avenues for exploration.
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyJava Examples in a Nutshell, 3rd Edition

(based on 2 reviews)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 2 customers

Displaying reviews 1-2

Back to top


Wish to see new edition

By Kamlendra

from India

About Me Developer


  • Accurate
  • Concise
  • Easy to understand
  • Helpful examples
  • Well-written


    Best Uses

      Comments about oreilly Java Examples in a Nutshell, 3rd Edition:

      I read this book way back in 2007. I think it is a great book with lot of code, that is practical and can be used directly, most of the time. From GUI in Swing to database access using JDBC the author covers a good range of topics in java development. I surely wish to see an updated version covering Java 8.


      Very good, even without Java In a Nutshell as a companion!

      By Anonymous

      from Undisclosed

      Comments about oreilly Java Examples in a Nutshell, 3rd Edition:

      I think that this is a very good book. I do not yet have the original Java in a Nutshell book (just ordered it), and yet, I can still learn very effectively with this book. this goes to show that these examples are so exemplary that i can learn Java solely by studying them. A must have!

      Displaying reviews 1-2

      Back to top

      Buy 2 Get 1 Free Free Shipping Guarantee
      Buying Options
      Immediate Access - Go Digital what's this?
      Ebook:  $31.99
      Formats:  DAISY, ePub, Mobi, PDF
      Print & Ebook:  $43.95
      Print:  $39.95