
The Way of JAVA
Gary Entsminger(Author)
Prentice Hall (Publisher)
Published on 10. March 1997
Book
Paperback/Softback
416 pages
978-0-13-491978-2 (ISBN)
Description
Explore Java with a master of OOP (object-oriented programming) When a new programming language comes along, master programmers have to experiment with it to find the best ways to take advantage of its unique capabilities. Master programmer, Gary Entsminger, shares his discoveries and secrets in The Way of Java. Organized around the basic elements of OOP and Java, each chapter includes discussions, code, tests, and complete applications. Each application addresses a particular problem the author encountered in his early work with Java. This book recreates each application step by step, leading you through the process and showing you ways to experiment on your own. For readers unfamiliar with the object model, The Way of Java reviews the basics of OOP as they apply to Java. Even experienced programmers will benefit from Entsminger's insights about Java's special characteristics. Advanced chapters focus on the intricacies of the GUI, threads, lists, streams, and, of course, applets.Specific topics include: *Designing reusable and friendly user interfaces *Using and reusing objects, containers, and components *Using inheritance to create object hierarchies *Accessing classes from other classes *Using dynamic programming techniques An appendix provides a selected reference to the Java Development Kit, and the enclosed diskette contains the code for all projects in this book and JavaOnTheRocks, a Java development environment for Microsoft Windows created by the author.
Author of The Tao of Objects, Secrets of the Visual Basic Masters, and The Way of Delphi, Gary Entsminger is a frequent contributor to many computing journals and a contributing editor for the Delphi Informant. He is currently working on a National Science Foundation Grant to develop user-friendly modeling systems based on the Delphi object model.
Author of The Tao of Objects, Secrets of the Visual Basic Masters, and The Way of Delphi, Gary Entsminger is a frequent contributor to many computing journals and a contributing editor for the Delphi Informant. He is currently working on a National Science Foundation Grant to develop user-friendly modeling systems based on the Delphi object model.
More details
Language
English
Place of publication
Upper Saddle River
United States
Publishing group
Pearson Education (US)
Target group
College/higher education
Dimensions
Height: 230 mm
Width: 180 mm
Thickness: 30 mm
Weight
780 gr
ISBN-13
978-0-13-491978-2 (9780134919782)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Person
Gary Entsminger is technical editor and columnist for Delphi Informant, and author of several books on programming, including The Tao of Objects and Secrets of the Visual Basic Masters. His articles have appeared in DBMS, Dr. Dobb's Journal, Computer Language, and many other publications.
Content
Preface.
Acknowledgments.
Foreword.
1. Approaching Java-Classes, Objects, Patterns, and Strategies.
What's Special about a Class?
Why an Object-Oriented Java?
Events.
Reusing Code.
The Applications in The Way of Java.
Dynamic Design.
Selected Class Descriptions.
Code Design Patterns.
A Few Symbols and Boldface.
2. A Class Act, An Object-Oriented Philosophy.
Where We're Headed.
Types.
Classes-The Big Difference.
Access Specifiers.
Applet or Stand-Alone.
A Hierarchy of Derived Classes.
A Distinction-Primitive and Reference Types.
Balancing Class Functionality and Reuse.
Composing Classes.
A Few Words about Class Scope.
A Taste of Inheritance.
Polymorphism-Many Shapes.
A Class Hierarchy.
A New Version of the Applet paint() Method.
Constructors and Destructors.
Some OOP Design Guidelines.
Looking Ahead.
3. Objects, Events, Applications, and the .AWT.
Creating Applications.
CommandCalc(s).
Creating an Application-First Steps.
Create a Constructor and a main() Method.
Events.
Actions Speak Louder.
Strings.
CommandCalc(3)-A Few More Additions.
4. A Few Exceptions.
Exception (But Not Error!) Handling.
Hierarchyl.
First Revision-Hierarchy.
Class Hierarchies-Hierarchy.
Deriving a Form and Packaging.
Summing up Requires an Experiment.
5. Graphically Friendly Canvases and Menus.
Random1-First Things First.
Create a Constructor and a main() Method.
Plotting Results on a Canvas.
Random2-A Few Changes.
Implementing a Menu-Driven User Interface.
Random3
Summing up (Again) Leads to a Theme Variation.
Finally.
6. Process, Runtime, and a First Thread.
Runtime.
Create a Constructor and a main() Method.
Building a Friendlier Interface.
Threads and a New Runtime.
7. Data, Data Everywhere-Lists, Streams, and File I/O.
Lists.
Create a Constructor and a main() Method.
List2-Revise a User Interface.
List3-Streams, Streams, and More Streams.
List4-Some Additional Functionality.
List5-Using the StringTokenizer Class.
List6-Task Processing.
8. A Few More Threads.
Threads1.
Create a Constructor and a main() Method.
Threads2-The Problem of Re-Entrance.
Threads3-Modest Variation.
9. Applets-A Special Case.
Erector: Create an Applet.
From an Applet to a Stand-Alone Application.
The Other Way Around: From Stand-Alone to Applet.
10. A Thread for Exploring Strange Attractors.
Strange Attractors.
Project: Attractors.
Create a Constructor and a main() Method.
Appendix A Selected Java Developers' Kit Class Method Reference.
Index.
Acknowledgments.
Foreword.
1. Approaching Java-Classes, Objects, Patterns, and Strategies.
What's Special about a Class?
Why an Object-Oriented Java?
Events.
Reusing Code.
The Applications in The Way of Java.
Dynamic Design.
Selected Class Descriptions.
Code Design Patterns.
A Few Symbols and Boldface.
2. A Class Act, An Object-Oriented Philosophy.
Where We're Headed.
Types.
Classes-The Big Difference.
Access Specifiers.
Applet or Stand-Alone.
A Hierarchy of Derived Classes.
A Distinction-Primitive and Reference Types.
Balancing Class Functionality and Reuse.
Composing Classes.
A Few Words about Class Scope.
A Taste of Inheritance.
Polymorphism-Many Shapes.
A Class Hierarchy.
A New Version of the Applet paint() Method.
Constructors and Destructors.
Some OOP Design Guidelines.
Looking Ahead.
3. Objects, Events, Applications, and the .AWT.
Creating Applications.
CommandCalc(s).
Creating an Application-First Steps.
Create a Constructor and a main() Method.
Events.
Actions Speak Louder.
Strings.
CommandCalc(3)-A Few More Additions.
4. A Few Exceptions.
Exception (But Not Error!) Handling.
Hierarchyl.
First Revision-Hierarchy.
Class Hierarchies-Hierarchy.
Deriving a Form and Packaging.
Summing up Requires an Experiment.
5. Graphically Friendly Canvases and Menus.
Random1-First Things First.
Create a Constructor and a main() Method.
Plotting Results on a Canvas.
Random2-A Few Changes.
Implementing a Menu-Driven User Interface.
Random3
Summing up (Again) Leads to a Theme Variation.
Finally.
6. Process, Runtime, and a First Thread.
Runtime.
Create a Constructor and a main() Method.
Building a Friendlier Interface.
Threads and a New Runtime.
7. Data, Data Everywhere-Lists, Streams, and File I/O.
Lists.
Create a Constructor and a main() Method.
List2-Revise a User Interface.
List3-Streams, Streams, and More Streams.
List4-Some Additional Functionality.
List5-Using the StringTokenizer Class.
List6-Task Processing.
8. A Few More Threads.
Threads1.
Create a Constructor and a main() Method.
Threads2-The Problem of Re-Entrance.
Threads3-Modest Variation.
9. Applets-A Special Case.
Erector: Create an Applet.
From an Applet to a Stand-Alone Application.
The Other Way Around: From Stand-Alone to Applet.
10. A Thread for Exploring Strange Attractors.
Strange Attractors.
Project: Attractors.
Create a Constructor and a main() Method.
Appendix A Selected Java Developers' Kit Class Method Reference.
Index.