
Java by Dissection: The Essentials of Java Programming, JavaPlace Edition / Edition 1
by Ira Pohl, Charlie McDowell, Charlie McDowellISBN-10: 0201751585
ISBN-13: 9780201751581
Pub. Date: 06/13/2001
Publisher: Pearson
Java by Dissection provides a comprehensive, example-based coverage of the Java language, wish an emphasis on programming style and methodology. It assumes no prior programming experience, making it ideal for readers who are starting out in their software development careers as well as for programmers who want to expand their skills.
/p>/i>/i>Overview
Java by Dissection provides a comprehensive, example-based coverage of the Java language, wish an emphasis on programming style and methodology. It assumes no prior programming experience, making it ideal for readers who are starting out in their software development careers as well as for programmers who want to expand their skills.
Teaching "by Dissection"
Java by Dissection stresses working code introducing full working programs from the start.. In each chapter, a program particularly illustrative of the chapter's themes is presented and then analyzed by dissectionIra Pohl's trademark code-presentation technique that reveals the underlying structure of the programs. This dissection of code helps readers comprehend newly encountered programming elements and idioms.
Traditional and Object-Oriented Programming
Java by Dissection begins by explaining how all the basic data types and control statements are used traditionally, and then progresses to the object-oriented features of the Java language and their importance to program design. This gradual introduction to OOP ensures that novices attain an understanding of programming basics before moving on to Java's object-oriented features.
The second half of Java by Dissection explains in detail much that is sophisticated about Java such as its threading GUI, exception handling and file-manipulation capabilities. With its depth and scope this book is both a carefully structured teaching text an (I a valuable reference in Java Programming.
Product Details
- ISBN-13:
- 9780201751581
- Publisher:
- Pearson
- Publication date:
- 06/13/2001
- Edition description:
- Updated Edition
- Pages:
- 509
- Product dimensions:
- 7.40(w) x 9.10(h) x 1.00(d)
Table of Contents
Preface.Acknowledgments.
1. Introduction.
Algorithms - Being Precise.
Implementing Our Algorithm in Java.
Why Java?
Network Computing and the Web.
Human-Computer Interaction and the GUI.
2. Program Fundamentals.
Compiling and Running Your Java Program.
Lexical Elements.
Data Types and Variable Declarations.
An Example: String Concatenation.
User Input.
Calling Predefined Methods.
More on print() and println().
Number Types.
Arithmetic Expressions.
Assignment Operators.
The Increment and Decrement Operators.
Precedence and Associativity of Operators
Programming Style.
3. Statements and Control Flow.
Boolean Expressions.
The if Statement.
The if-else Statement.
The while Statement.
The for Statement.
The break and continue Statements.
The switch Statement.
Using the Laws of Boolean Algebra.
Programming Style.
4. Methods: Functional Abstraction.
Static Method Definitions.
The return Statement.
Scope of Variables.
Top-Down Design.
Problem Solving: Random Numbers.
A Simulation: Probability Calculations.
Invocation and Call-by-Value.
Scope of Variables.
Problem Solving: A Computer Game.
Recursion.
ProblemSolving: Mathematical Functions.
Method Overloading.
Programming Style.
5. Arrays.
Passing Arrays to Methods.
Array Assignment.
Finding the Minimum and Maximum of an Array.
A Simple Sorting Method.
Searching an Ordered Array.
Big-Oh: Choosing the Best Algorithm.
Type and Array.
Two-Dimensional Arrays.
An Elementary Simulation: The “Game of Life” .
Arrays of Non-Primitive Types.
Programming Style.
6. Objects: Data Abstraction.
StringBuffer: Using Mutator Methods.
The Elements of a Simple Class.
Access public and private: Data Hiding.
Constructor Methods and Object Creation.
Static Fields and Methods.
Calling Methods-a Recap.
Problem Solving: Making Change.
Accessing Another Object's Private Fields.
Passing Objects: Reference Types.
Scope.
Keyword final and Class Constants.
Arrays of Objects.
Object-Oriented Design.
Programming Style.
7. Inheritance.
Overriding Instance Methods.
The Access Modifiers private and public Revisited.
The Access Modifier protected.
Type Object and Inheritance.
Wrapper Classes.
Abstract Classes.
An Example: Predator-Prey Simulation.
Interfaces.
Multiple Inheritance.
Inheritance and Design.
The Operator insistanceof and Casting Nonprimitive Types.
Programming Style.
8. Graphical User Interfaces: Part I.
Listening to Events.
Text and Numerical Input.
Using Several Components.
Drawing with Swing.
The Layout Manager FlowLayout.
A Simple Drawing Program.
Applets.
Programming Style.
9. Graphical User Interfaces: Part II.
Getting a Component to Resize.
Problem Solving: Plotting Data.
The Class Graphics.
Changing the Stroke Used in Drawing.
Adding Menus to your GUI.
Event Listeners and Adapters.
Programming Style.
10. Reading and Writing Files.
Writing Text Files.
Reading Text Files.
Formatting Text Output.
Problem Solving: Encrypting Text Files.
Reading and Writing Binary Files.
Detecting the End of an Input Stream.
Programming Style.
11. Exceptions.
Catching an EOFException.
Abrupt Return from Methods That Throw Exceptions.
Catching Several Different Exceptions.
The finally Clause.
Program Correctness: Throwing an Exception.
RuntimeExceptions and the throws Clause.
Programming Style.
12. Dynamic Data Structures.
A Linked List Implementation of a Stack.
A Singly Linked List.
More Operations on Lists.
A Generic Stack.
An Example: Polish Notation and Stack Evaluation.
Queues.
Iterators.
Iterators and the Interface Iterator.
Deleting Objects.
Packages.
Programming Style.
13. Concurrent Programming with Java Threads.
Creating Threads.
Communicating between Two Threads.
Synchronizing Two Threads.
Passing Messages to Another Computer.
A MultiThreaded Server.
More About the Methods sleep(), wait(), and notify().
Programming Style.
Appendix A. Getting Down to the Bits.
Floating Point Representations.
Manipulating Bits.
Appendix B. Reference Tables.
The Standard Java Math Functions.
Appendix C. The Text I/O Package tio.
The Class tio.FormattedWriter.
The Class tio.ReadException.
The Class tio.Console.
The Class tio.PrintFileWriter
Appendix D. Summary of Selected Swing Components.
The Class JComboBox.
The Class JList
The Class JLabel.
The Class JTextField.
The Class JTextArea.
The Class JPanel.
The Class JScrollPane.
Index.
Customer Reviews
Average Review: