Java By Example (Bk/CD-ROM)
Home > Computing and Information Technology > Computer programming / software engineering > Web programming > Java By Example (Bk/CD-ROM)
Java By Example (Bk/CD-ROM)

Java By Example (Bk/CD-ROM)


     0     
5
4
3
2
1



Available


X
About the Book

This book presents Java by guiding readers through proven examples written by experts. This pragmatic, illustrative approach carries through the entire text, developing Java applets and applications, from simple to complex. By reviewing real, working code, readers learn the right way to develop Java code that is elegant, readable, and easy to maintain. The book's carefully annotated code is designed to help programmers start developing with Java immediately.

Table of Contents:
I. WORKING WITH THE JAVA LANGUAGE. 1. About Java. What Is Java? Java and the World-Wide Web. The Java Compiler and the Java Interpreter. The Applet Viewer. Applications and Applets. Writing, Compiling, and Running an Application. Writing, Compiling, and Viewing an Applet. Incorporating Applets Into a Web Page. 2. Beginning With a Program. A Line Counter Program. A Closer Look at the Line Counter. Output From the Line Counter. Summary. 3. The Java Language Structure. Introduction. Classes and Methods. Instance Methods. Class Methods. The main() Method. Overriding Methods. Abstract Methods. Native Methods. Final Methods. Method Modifiers and Their Scope. Scope of a public Method. Scope of a private Method. Scope of a friendly Method. The protected Modifier. Variables. Variable Type. Variable Modifiers. Variable Scope and Extent. Instance Variables. Class Variables. Local Variables. Constants. Variables, Methods, and Superclasses. Static Initializers. Packages and the import Statement. Summary. 4. Memory and Constructors. Dynamic Allocation and Garbage Collection. The new Operator and Constructors. Using Multiple Constructors Within a Class. The Default Constructor. Using super and this in Constructors. Finalization. A Sample Program Showing Linked Lists in Java. The LongMult Class and the main() Method. The BigNum Class. The NumNode Class. The BigNumFormatException Class. Output From the Long Multiplier Program. Summary. 5. Interfaces as Types. What Is an Interface? Why Use an Interface? Using Interfaces. Extending Interfaces. A Sample Program Using Interfaces. The TreeSort Class and the main() Method. The Tree Class. The TreeNode Class. The InorderEnumeration Class. The TreeKey Interface. Sample Output From the Tree Sort Program. Summary. 6. Arrays. Basics of Java Arrays. Arrays of Objects. Multidimensional Arrays. C++ Style Array Initialization. Alternative Array Declaration Syntax. Arrays in the Object Hierarchy. Summary. 7. Exception Handling. Exceptional Conditions. Problems Using Return Codes for Error Processing. Catching and Throwing Exceptions. try and catch. The finally Statement. The throw Statement. Errors. Declaring Exceptions. Runtime Exceptions. Summary. 8. Input/Output. Introduction. Java I/O Classes and Wrappers. Standard Streams for a Java Program. Printing Text Output in Java. Reading Text Input in Java. Reading Characters. Reading an Array of Bytes. Output of the CopyFile Program. Reading Text a Line at a Time. Output of the CopyTextFile Program. Reading a Token at a Time. Output of the TokenizerText Program. File Input and Output in Java. Output of the AppendTextFile Program. Data Input and Output in Java. Summary. 9. Runtime Typing and Extensibility. Introduction. Variable Types and Their Values. The instanceof Operator. Type Casting. Class Loading at Runtime. Class Loaders. Linking With C Code. Declaring Native Methods. Generating Include Files. Generating Stub Functions. Building a Library. Linking a Library Into Java. Examples. Using Native Methods, Example 1. Using Native Methods, Example 2. Using Native Methods, Example 3. Summary. 10. Multiple Threads of Execution. Introduction. Creating Threads. Extending the Thread Class. Implementing the Runnable Interface. Resource Locking. Using the synchronized Modifier. Using synchronized Blocks. Summary. 11. Putting the Pieces Together. Four-Function Calculator. The Calculator main() Method. The Calculator Class. The Reader Class. The ExitException Class. The Displayable Interface. The Processable Interface. The ProcessableCharacter Class. The ProcessableDouble Class. The CalcStack Class. The CalcStackItem Interface. Output From the Calculator Program. Summary. II. WRITING JAVA APPLETS. 12. Introduction to Applets. Introduction. Java's Applet Tools and Class Support. Displaying Applet Output. A Simple Applet. Configurable Applets. Displaying a Static Label. Output From the Static Label Applet. Incorporating Images and Sound. Output From the ImageWithSound Applet. Active Applets. Displaying a Flashing Label. Output From the Flashing Label Applet. Summary. 13. Events and Threads in Applets. Introduction. Simple Event Handling. Puzzle Applet. Output From the Puzzle Applet. Managing Events and Threads. Memory Game Applet. Output From the Memory Game Applet. Summary. 14. Forms in Applets. Introduction. Containers. Layout Managers. A Forms-based Applet. Output from the Occupational Oracle Applet. Summary. 15. Animation in Applets. Incorporating Animation. A Ticker-tape Applet. Output From the Ticker-tape Applet. The Animator Class. Summary. 16. Putting the Pieces Together. Introduction. Constructing the Cellular Applet. Applet Overview. Operation of the Applet. Use of synchronized in the Applet. A Custom Layout Manager. Defining Rules. Scripting the Applet. Applet Class Structure. The Cellular Applet. The Cellular Class. The CellCanvas Class. The RuleTextField Class. The CellValue Class. The Pattern Class. The BoardLayout Class. The Arena Class. The Rules Class. Summary. III. APPENDIXES. Appendix A. Object- Oriented Programming. Overview. Classes. Instances. Inheritance. Encapsulation. Overloading. Polymorphism. Appendix B. Quick Reference. Java for C Programmers. Java for C++ Programmers. Data Types. Operators. Control Flow and Iteration. Comments. Keywords. The Java Classes and Interfaces. The java.applet Package. The java.awt Package. The java.io Package. The java.lang Package. The java.net Package. The java.util Package. The HTML applet and param Tags. Appendix C. The SunSoft Press Java Series CD-ROM. Index.


Best Sellers


Product Details
  • ISBN-13: 9780135657638
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Prentice Hall
  • Height: 235 mm
  • No of Pages: 400
  • Weight: 791 gr
  • ISBN-10: 0135657636
  • Publisher Date: 09 Apr 1996
  • Binding: SA
  • Language: English
  • Spine Width: 28 mm
  • Width: 178 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Java By Example (Bk/CD-ROM)
Pearson Education (US) -
Java By Example (Bk/CD-ROM)
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 By Example (Bk/CD-ROM)

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!