Java Examples in a Nutshell, 3rd Edition

3.48 avg rating
( 75 ratings by Goodreads )
 
9780596006204: Java Examples in a Nutshell, 3rd Edition

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.

"synopsis" may belong to another edition of this title.

Review:

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 algorithms (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

Topics covered:

  • Library of Java 2 code samples
  • A "Hello world" example
  • Mathematical calculations and algorithms (the Fibonacci Series, factorials, prime-number generation, sorting, exception handling)
  • Basic class design (classes for graphics, random numbers, and a linked list)
  • Java file I/O (including opening, reading, and writing files)
  • Filtering file streams
  • Java threads and multitasking techniques
  • Java networking classes (URLs and connections, sending e-mail)
  • Sample code for custom Web servers and proxy servers
  • Security and cryptography
  • Basic internationalization
  • The Java reflection APIs

  • Object serialization
  • Swing user-interface design
  • Code for a simple Web browser, based on Swing
  • Tutorial for AWT and Java 2-D graphics
  • Printing techniques
  • Cutting and pasting data in Java
  • JavaBeans (custom components, bean property editors, customizers)
  • Applet basics (including JDK 1.0 event handling and JAR files)
  • Remote Method Invocation (RMI)
  • Sample code for a Multiuser Domain (MUD) server
  • Database and JDBC programming
  • Servlet and JavaServer Pages (JSPs) tutorial
  • XML and Java (including JAXP, SAX 1 and 2, and JDOM)
  • About 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 http://www.davidflanagan.com.

    "About this title" may belong to another edition of this title.

    Top Search Results from the AbeBooks Marketplace

    1.

    Flanagan, David
    Published by O'Reilly Media
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New PAPERBACK Quantity Available: > 20
    Seller:
    Mediaoutlet12345
    (Springfield, VA, U.S.A.)
    Rating
    [?]

    Book Description O'Reilly Media. PAPERBACK. Book Condition: New. 0596006209 *BRAND NEW* Ships Same Day or Next!. Bookseller Inventory # SWATI2122349930

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    15.99
    Convert Currency

    Add to Basket

    Shipping: 2.95
    Within U.S.A.
    Destination, Rates & Speeds

    2.

    Flanagan, David
    Published by O'Reilly Media 1/31/2004 (2004)
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New Paperback or Softback Quantity Available: 10
    Seller:
    BargainBookStores
    (Grand Rapids, MI, U.S.A.)
    Rating
    [?]

    Book Description O'Reilly Media 1/31/2004, 2004. Paperback or Softback. Book Condition: New. Java Examples in a Nutshell. Book. Bookseller Inventory # BBS-9780596006204

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    22.54
    Convert Currency

    Add to Basket

    Shipping: FREE
    Within U.S.A.
    Destination, Rates & Speeds

    3.

    David Flanagan
    Published by O Reilly Media, Inc, USA, United States (2004)
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New Paperback Quantity Available: 1
    Seller:
    The Book Depository
    (London, United Kingdom)
    Rating
    [?]

    Book Description O Reilly Media, Inc, USA, United States, 2004. Paperback. Book Condition: New. 3rd Revised edition. Language: English . Brand New Book. 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. Bookseller Inventory # AAH9780596006204

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    22.60
    Convert Currency

    Add to Basket

    Shipping: FREE
    From United Kingdom to U.S.A.
    Destination, Rates & Speeds

    4.

    David Flanagan
    Published by O'Reilly Media (2017)
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New Paperback Quantity Available: > 20
    Print on Demand
    Seller:
    Murray Media
    (North Miami Beach, FL, U.S.A.)
    Rating
    [?]

    Book Description O'Reilly Media, 2017. Paperback. Book Condition: New. Never used! This item is printed on demand. Bookseller Inventory # 0596006209

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    21.38
    Convert Currency

    Add to Basket

    Shipping: 1.47
    Within U.S.A.
    Destination, Rates & Speeds

    5.

    Flanagan, David
    Published by O'Reilly Media
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New PAPERBACK Quantity Available: 3
    Seller:
    Lakeside Books
    (Benton Harbor, MI, U.S.A.)
    Rating
    [?]

    Book Description O'Reilly Media. PAPERBACK. Book Condition: New. 0596006209 BRAND NEW, GIFT QUALITY! NOT OVERSTOCKS OR MARKED UP REMAINDERS! DIRECT FROM THE PUBLISHER!|1.92. Bookseller Inventory # OTF-S-9780596006204

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    21.54
    Convert Currency

    Add to Basket

    Shipping: 2.95
    Within U.S.A.
    Destination, Rates & Speeds

    6.

    David Flanagan
    Published by O Reilly Media, Inc, USA, United States (2004)
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New Paperback Quantity Available: 1
    Seller:
    The Book Depository US
    (London, United Kingdom)
    Rating
    [?]

    Book Description O Reilly Media, Inc, USA, United States, 2004. Paperback. Book Condition: New. 3rd Revised edition. Language: English . Brand New Book. 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. Bookseller Inventory # AAH9780596006204

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    24.64
    Convert Currency

    Add to Basket

    Shipping: FREE
    From United Kingdom to U.S.A.
    Destination, Rates & Speeds

    7.

    David Flanagan
    Published by OReilly Media
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New Paperback Quantity Available: 3
    Seller:
    THE SAINT BOOKSTORE
    (Southport, United Kingdom)
    Rating
    [?]

    Book Description OReilly Media. Paperback. Book Condition: New. New copy - Usually dispatched within 2 working days. Bookseller Inventory # B9780596006204

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    19.86
    Convert Currency

    Add to Basket

    Shipping: 6.94
    From United Kingdom to U.S.A.
    Destination, Rates & Speeds

    8.

    David Flanagan
    Published by O'Reilly Media 2004-02-06, Sebastopol, Calif. |Farnham (2004)
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New paperback Quantity Available: > 20
    Seller:
    Blackwell's
    (Oxford, OX, United Kingdom)
    Rating
    [?]

    Book Description O'Reilly Media 2004-02-06, Sebastopol, Calif. |Farnham, 2004. paperback. Book Condition: New. Bookseller Inventory # 9780596006204

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    25.77
    Convert Currency

    Add to Basket

    Shipping: 3
    From United Kingdom to U.S.A.
    Destination, Rates & Speeds

    9.

    David Flanagan
    Published by O'Reilly Media (2004)
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New Paperback Quantity Available: 1
    Seller:
    Irish Booksellers
    (Rumford, ME, U.S.A.)
    Rating
    [?]

    Book Description O'Reilly Media, 2004. Paperback. Book Condition: New. book. Bookseller Inventory # M0596006209

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    30.79
    Convert Currency

    Add to Basket

    Shipping: FREE
    Within U.S.A.
    Destination, Rates & Speeds

    10.

    David Flanagan
    Published by O'Reilly Media
    ISBN 10: 0596006209 ISBN 13: 9780596006204
    New Paperback Quantity Available: > 20
    Seller:
    BuySomeBooks
    (Las Vegas, NV, U.S.A.)
    Rating
    [?]

    Book Description O'Reilly Media. Paperback. Book Condition: New. Paperback. 720 pages. Dimensions: 8.9in. x 6.0in. x 1.1in.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 IO 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 doesnt 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 IO, New IO, threads, networking, security, serialization, and reflectionDesktop APIs, highlighting Swing GUIs, Java 2D graphics, preferences, printing, drag-and-drop, JavaBeans, applets, and soundEnterprise APIs, including JDBC (database access), JAXP (XML parsing and transformation), Servlets 2. 4, JSP 2. 0 (JavaServer Pages), and RMIThe 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. This item ships from multiple locations. Your book may arrive from Roseburg,OR, La Vergne,TN. Paperback. Bookseller Inventory # 9780596006204

    More Information About This Seller | Ask Bookseller a Question

    Buy New
    30.15
    Convert Currency

    Add to Basket

    Shipping: 2.92
    Within U.S.A.
    Destination, Rates & Speeds

    There are more copies of this book

    View all search results for this book