Java 2 By Example

Java 2 By Example

          
5
4
3
2
1

Available


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Quantity:
Add to Wishlist

About the Book

Java by Example, Third Edition is designed to help programmers learn from proven examples written by experts. Review real, working code, and learn the right way to develop Java applets and applications that are elegant, readable, and easy to maintain. The book has been completely updated to cover JDK 1.2, with in-depth coverage of inner classes, reflection and collection classes. It covers a wide variety of JDK 1.2 inner class mechanisms, helping you choose the most powerful, flexible approaches to structuring your applications. It presents detailed coverage of JDK 1.2 reflection capabilities, showing when to use them - and when not to. Learn better techniques for managing memory, working constructors, I/O, multithreading, exception handling, security, networking, JDBC database access, and more.

Table of Contents:
List of Tables List of Examples List of Figures Preface Why We Are Here Audience For Mac Programmers For C Programmers Internet Sources of Information Conventions Used in This Book Applets Applications and Programming Aids Java by Example CD Contents Acknowledgments I. - WORKING WITH THE JAVA LANGUAGE 1. ABOUT JAVA. What Is Java? Java and the World-Wide Web. The Java Utilities You Need to Know About. The Java Interpreter and Java Runtime Environment. The Java Compiler. The Appletviewer Program. CLASSPATH. Javadoc. Applications and Applets. Writing Compiling and Running an Application. Writing Compiling and Viewing an Applet. Incorporating Applets Into a Web Page. Summary. 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. Scope of a protected Method. 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 and BigNumFormatException Classes. 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. Output From the Tree Sort Program. Summary. 6. Arrays. Basics of Java Arrays. Arrays of Objects. Multidimensional Arrays. C++ Style Array Initialization. Array Expressions. 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. Remote 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 Class Loading. Introduction. Variable Types and Their Values. The instanceof Operator. Type Casting. Class Loading at Runtime. Class Loaders. Summary. 10. Linking With Native Code. Introduction. Why Link With Native Code? Using JNI. Declaring Native Methods. Generating Include Files. Building a Library. Linking a Library into Java. JNI Native Methods and the Java Virtual Machine. Using the JNI for a Symbol Lookup. Using the Native Method Interface for Symbol Lookup. Generating Include Files. Generating Stub Functions. Using the Native Method Interface Example One. Using the Native Method Interface Example Two. Using the Native Method Interface Example Three. Summary. 11. 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. 12. Inner Classes. Member Classes. Local Classes. Anonymous Classes. Scoping and Inner Classes. Scoping and Member Classes. Static Member Classes. Anonymous Classes and Higher-Order Programming. An Extended Example: Anonymous Classes Closures and Continuation Passing Style. Closure Interface. Predicate Interface. Match Class. MatchExp Class. AnyExp Class. PairExp Class. VarExp Class. SeqVarExp Class. ListExp Class. SeqClosure Interface. BindingMap Class. Cell Class. NoSuchBindingException Class. LispCons Class. LetSpecialForm Class. Summary. 13. Collection Classes. Standard Data Structures. Java Collection Classes Hierarchy. The Collection Interface Hierarchy. The Map Interface Hierarchy. The Collection Class Hierarchy. Operations on Collections. Operations on Maps. Subinterfaces of Collection and Map. List. Set. SortedSet. SortedMap. Tips. The WeakHashMap Class. Using Collections-Large Strings. Collections Package Classes. The CharList Class. UniqueCharList Class. Canonicalizer Class. Summary. 14. Reflection. From Whence It Came. Uses of Reflection. When Not to Use Reflection. The java.lang.Class Class and the java.lang.reflect Package. Reflection and Primitive Types. Reflective Class Operations in Java. An Interpreter Written in Java. Refection at Work. The lisp Reflector Class. The lisp.prim.LispAFetchFun Class. The lisp.prim.LispAStoreFun Class. Sample Session. Summary. 15. Putting the Language Pieces Together. Four-Function Calculator. The Calculator main() Method. The Calculator Class. The CalcInput Class. The ExitException Class. Displayable Interface. The Processable Interface. The ProcessableCharacter Class. The ProcessableDouble Class. The CalcStack Class. The CalcStackItem Interface. Running the Calculator Program. Summary. 16. Remote Method Invocation. What is Remote Method Invocation? How RMI Works. Calling Remote Methods. The RemOp Interface. The RemImpl Class. Running the rmi1 Example. Building RMI Applications. Defining Interfaces. Creating Classes That Implement the Interfaces. Creating Stub and Skeleton Classes. Passing Arguments to Remote Methods. The Action Interface. The ServerAction Class. The ClientAction Interface. The RemoteCaller Interface. The RemoteCallerImpl Class. The ClientActionImpl Class. Running the rmi2 Example. Managing Multiple RMI Client Processes. The ActionTestSet Class. The ClientActionImpl Class. The RemoteCaller Interface. The RemoteCallerImpl Class. Running the rmi3 Example. RMI and Threads. The ActionTestSet Class. The ClientActionImpl Class. Running the rmi4 Example. Registries. Finding Objects in a Registry. Changing the Contents of a Registry. Garbage Collection of Remote References. Maintaining Object References Across Multiple Processes. The Builder Interface. The BuildImp Class. The RemNode Interface. The NodeImpl Class. Running the rmi5 Example. Summary. 17. Java Database Connectivity. What is Java Database Connectivity? Structure of a JDBC Application. Database Connections. Interacting With a Database. SQL/Java Type Correspondence. Executing Precompiled SQL. Generic get and set Methods. Resources. Metadata. Transactions. Cursors. Exercising the JDBC. Summary. II. - WRITING JAVA APPLETS 18. 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. 19. Forms in Applets. Introduction. Containers. Layout Managers. A Forms-based Applet. Output from the Occupational Oracle Applet. Summary. 20. Animation in Applets. Incorporating Animation. A Ticker-tape Applet. Output From the Ticker-tape Applet. Summary. 21. 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. 22. Putting the Applet 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 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. Deprecated APIs. The Java Classes and Interfaces. The HTML applet and param Tags. Index.


Best Sellers


Product Details
  • ISBN-13: 9780130796691
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Prentice Hall
  • Height: 235 mm
  • No of Pages: 544
  • Weight: 1178 gr
  • ISBN-10: 0130796697
  • Publisher Date: 23 Dec 1998
  • Binding: SA
  • Language: English
  • Spine Width: 39 mm
  • Width: 179 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

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

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!
    ASK VIDYA