Java Examples in a Nutshell, 2nd Edition

Java Examples in a Nutshell, 2nd Edition Front Cover
50 Reviews
2000-10-03
584 pages

Book Description

Java Examples in a Nutshell is full of real-world Java examples. The second edition of this bestselling book covers Java 1.3 and contains 164 complete, practical programs: over 17,900 lines of densely commented, professionally written Java code covering 20 distinct Java APIs, including Servlets, JavaServer Pages, XML, Swing, and Java 2D. David Flanagan, the author of Java in a Nutshell, has created an entire book of programs that readers can learn from and modify for their own use.

This book is a companion volume to Java in a Nutshell, Java Foundation Classes in a Nutshell, and Java in a Nutshell. While those books are quick references at heart, they each include accelerated tutorials on various Java topics. Java Examples in a Nutshell picks up where those books leave off, serving up a suite of example programs for novice Java programmers and experts alike. This book doesn't hold readers' hands or supply detailed explanations of Java syntax or method calls; it simply delivers well-commented working examples for exploring the wide range of what's possible with Java. Each chapter concludes with programming exercises that suggest avenues for building further knowledge.

Java Examples in a Nutshell contains the following:

  • Examples that demonstrate basic Java functionality and the essential Java API's, including I/O, threads, networking, , reflection, serialization, and .
  • Programs that use the graphical user interface and graphics features of Java, highlighting the Swing, Java 2D, printing, data transfer, , and applet APIs.
  • Examples that illustrate key enterprise APIs in Java, including remote method invocation (RMI), connectivity (JDBC), servlets, JavaServer Pages (JSP), and XML.
  • An example index that lets users look up a programming concept or Java class and find any examples in the book that demonstrate that concept or use that class.

Aimed at those who have some previous Java experience, Java Examples in a Nutshell, 2nd Edition provides an outstanding collection of code samples that are designed to help you improve your programming skills--by studying code that works. With over 150 expert examples that illustrate a wide range of Java APIs, this volume definitely can bring your knowledge of Java to the next level.

Many programming titles rely on code excerpts to illustrate key programming concepts. This book reverses that approach by emphasizing the code itself, enhancing it with introductory material and explanations. While some short examples illustrate simple (such as random-number generation and sorting), many of the examples are substantial: for example, how to create a multithreaded Web server, a proxy server, and even a simple Web browser (by using built-in Swing classes for a user interface). These longer examples occupy several pages; generally, they're well-commented models of coding clarity.

This second edition adds extensive support for the Java 2 JDK 1.3 standard. Later sections provide sample code on most recent developments in enterprise APIs, including Swing, JDBC, and XML. This text concludes with one of the best short tutorials that you're likely to find anywhere on JSP and servlet programming, including excellent detail on deploying JSP-based Web applications.

Although it's designed to be a companion title to Java in a Nutshell and other O'Reilly Java offerings, there's little doubt that this book stands on its own quite well. And, given the short exercises at the end of every chapter that help you expand your command of Java features and APIs, this is a worthy and up-to-date resource for all levels of Java programmers. --Richard Dragan

Table of Contents

Part I Core Java Apis
Chapter 1 Ja Va Basics
Chapter 2 Objects, Classes, And Interfaces
Chapter 3 Input/Output
Chapter 4 Threads
Chapter 5 Networking
Chapter 6 Secur Ity And Cryptog Raphy
Chapter 8 Reflection
Chapter 9 Object Serialization

Part II Graphics And Guis
Chapter 10 Graphical User Interfaces
Chapter 11 Graphics
Chapter 12 Pr Inting
Chapter 13 Data Transfer
Chapter 14 Ja Vabeans
Chapter 15 Applets

Part III Enterpr Ise Ja Va
Chapter 16 Remote Method Invocation
Chapter 17 Database Access With Sql
Chapter 18 Ser Vlets And Jsp
Chapter 19 Xml
Chapter 20 Example Index

Book Details

  • Title: Java Examples in a Nutshell, 2nd Edition
  • Author:
  • Length: 584 pages
  • Edition: 2
  • Language: English
  • Publisher:
  • Publication Date: 2000-10-03
  • ISBN-10: 0596000391
  • ISBN-13: 9780596000394