Java Examples in a Nutshell
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Java Examples in a Nutshell: A Tutorial Companion to "Java in a Nutshell"(Java S.)
Java Examples in a Nutshell: A Tutorial Companion to "Java in a Nutshell"(Java S.)

Java Examples in a Nutshell: A Tutorial Companion to "Java in a Nutshell"(Java S.)


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

This text provides real-world example programs that not only serve as great learning tools, but can also be modified for individual use. The second edition 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 API's, including Servlets, JavaServer Pages, XML, Swing, and Java 2D. The book is a companion volume to "Java in a Nutshell", "Java Foundation Classes in a Nutshell", and "Java Enterprise in a Nutshell". While those books are quick references at heart, they each include accelerated tutorials on various Java topics. This text picks up where those books leave off, serving up a suite of example programs for novice Java programmers and experts alike. It delivers 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, security, reflection, serialization, and security; programs that use the graphical user interface and graphics features of Java, highlighting the Swing, Java 2D, printing, data transfer, JavaBeans, and applet APIs; examples that illustrate key enterprise APIs in Java, including remote method invocation (RMI), database connectivity (JDBC), servlets, JavaServer Pages (JSP), and XML; and 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.

Table of Contents:
Preface PART 1: Core Java APIs Chapter 1. Java Basics Hello World FizzBuzz The Fibonacci Series Using Command-Line Arguments Echo in Reverse FizzBuzz Switched Computing Factorials Recursive Factorials Caching Factorials Computing Big Factorials Handling Exceptions Interactive Input Using a StringBuffer Sorting Numbers Computing Primes Exercises Chapter 2. Objects, Classes, and Interfaces A Rectangle Class Testing the Rect Class A Rect Subclass Another Subclass Complex Numbers Computing Pseudo-Random Numbers Computing Statistics A Linked List Class Advanced Sorting Exercises Chapter 3. Input/Output Files and Streams Working with Files Copying File Contents Reading and Displaying Text Files Listing Directory and File Information Compressing Files and Directories Filtering Character Streams Filtering Lines of Text A Custom HTML Output Stream Exercises Chapter 4. Threads Thread Basics Threads and Thread Groups Deadlock Timers Exercises Chapter 5. Networking Downloading the Contents of a URL Using a URLConnection Sending Email Through a URLConnection Connecting to a Web Server A Simple Web Server A Proxy Server Networking with Applets A Generic Client A Generic Multithreaded Server A Multithreaded Proxy Server Sending Datagrams Receiving Datagrams Exercises Chapter 6. Security and Cryptography Running Untrusted Code Loading Untrusted Code Message Digests and Digital Signatures Cryptography Exercises Chapter 7. Internationalization A Word About Locales Unicode Character Encodings Handling Local Customs Localizing User-Visible Messages Formatted Messages Exercises Chapter 8. Reflection Obtaining Class and Member Information Invoking a Named Method Exercises Chapter 9. Object Serialization Simple Serialization Custom Serialization Externalizable Classes Serialization and Class Versioning Serialized Applets Exercises PART 2: Graphics and GUIs Chapter 10. Graphical User Interfaces Components Containers Layout Management Event Handling A Complete GUI Actions and Reflection Custom Dialogs Displaying Tables Displaying Trees A Simple Web Browser Describing GUIs with Properties Themes and the Metal Look-and-Feel Custom Components Exercises Chapter 11. Graphics Graphics Before Java 1.2 The Java 2D API Drawing and Filling Shapes Transforms Line Styles with BasicStroke Stroking Lines Filling Shapes with Paint Antialiasing Combining Colors with AlphaComposite Image Processing A Custom Shape Custom Strokes Custom Paint Advanced Animation Displaying Graphics Examples Exercises Chapter 12. Printing Printing with the Java 1.1 API Printing with the Java 1.2 API Printing Multipage Text Documents Printing Swing Documents Exercises Chapter 13. Data Transfer Data Transfer Architecture Simple Copy-and-Paste A Transferable Data Type Cutting and Pasting Scribbles Dragging and Dropping Scribbles Exercises Chapter 14. JavaBeans Bean Basics A Simple Bean A More Complex Bean Custom Events Specifying Bean Information Defining a Simple Property Editor Defining a Complex Property Editor Defining a Bean Customizer Exercises Chapter 15. Applets Introduction to Applets A First Applet A Clock Applet Applets and the Java 1.0 Event Model Java 1.0 Event Details Reading Applet Parameters Images and Sounds JAR Files Exercises PART 3: Enterprise Java Chapter 16. Remote Method Invocation Remote Banking A Bank Server A Multiuser Domain Remote MUD Interfaces The MUD Server The MudPlace Class The MudPerson Class A MUD Client Advanced RMI Exercises Chapter 17. Database Access with SQL Accessing a Database Using Database Metadata Building a Database Using the API Database Atomic Transactions Exercises Chapter 18. Servlets and JSP Servlet Setup A Hello World Servlet Servlet Initialization and Persistence: A Counter Servlet Database Access with Servlets A Login Screen with JSP Request Forwarding JSP Pages and JavaBeans Ending a User Session Custom Tags Deploying a Web Application Exercises Chapter 19. XML Parsing with JAXP and SAX 1 Parsing with SAX 2 Parsing and Manipulating with JAXP and DOM Traversing a DOM Tree Traversing a Document with DOM Level 2 The JDOM API Exercises Chapter 20. Example Index Index

About the Author :
David Flanagan is a computer programmer who spends most of his time writing about Java. His other books with O'Reilly & Associates include the bestselling Java in a Nutshell, Java Foundation Classes in a Nutshell, Java Enterprise in a Nutshell, Java Power Reference, 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 partner Christie in the U.S. Pacific Northwest between the cities of Seattle, Washington and Vancouver, British Columbia.


Best Sellers


Product Details
  • ISBN-13: 9780596000394
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Edition: Revised edition
  • Language: English
  • Series Title: Java S.
  • Weight: 770 gr
  • ISBN-10: 0596000391
  • Publisher Date: 31 Oct 2000
  • Binding: Book
  • Height: 229 mm
  • Returnable: N
  • Sub Title: A Tutorial Companion to "Java in a Nutshell"
  • Width: 153 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Java Examples in a Nutshell: A Tutorial Companion to "Java in a Nutshell"(Java S.)
O'Reilly Media -
Java Examples in a Nutshell: A Tutorial Companion to "Java in a Nutshell"(Java S.)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Java Examples in a Nutshell: A Tutorial Companion to "Java in a Nutshell"(Java S.)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!