Java: An Introduction to Computer Science and Programming JDK 1.2 Compatible Source Code / Edition 1

Java: An Introduction to Computer Science and Programming JDK 1.2 Compatible Source Code / Edition 1

by Walter Savitch
     
 

ISBN-10: 0132874261

ISBN-13: 9780132874267

Pub. Date: 12/16/1998

Publisher: Prentice Hall Professional Technical Reference

Best-selling author, Walter Savitch, uses a conversational style to teach programmers problem solving and programming techniques with Java. Readers are introduced to object-oriented programming and important computer science concepts such as top-down design, debugging, style, and abstract data types. The Java coverage is a concise, accessible introduction that

Overview

Best-selling author, Walter Savitch, uses a conversational style to teach programmers problem solving and programming techniques with Java. Readers are introduced to object-oriented programming and important computer science concepts such as top-down design, debugging, style, and abstract data types. The Java coverage is a concise, accessible introduction that covers key language features. Thorough early coverage of objects is included, with an emphasis on applications over applets.

Professor Savitch includes a highly flexible format that allows instructors and readers to adapt coverage of topics to their order of preference. This text assumes no previous programming experience.

Other Key Features

  • Complete explanations of Java language features are included with sample code and entire programs.
  • Summary Boxes that summarize key Java features and problem solving techniques provide quick review of chapter material.
  • Programming Tips explain good programming practices, while Gotcha sections identify common programming problems and pitfalls.
  • The AWT is used to teach how to design portable GUIs and produce professional windowing interfaces. In the process, readers learn event-driven programming and object-oriented programming.
  • The Java material was tested using Sun Microsystem's Java JDK version 1.1 and is consistent with changes scheduled for version 1.2.
  • Self-Test Questions with answers follow important topics so users can check their level of understanding.
  • Engaging Case Studies expose readers to real-life applications.
  • The book's CD-ROM includes all the programs and classes, a student version ofCode Warrior, and an integrated development environment for Windows 95/NT and Macintosh.
  • The Companion Web Site includes an Online Student Study Guide and program code.

Product Details

ISBN-13:
9780132874267
Publisher:
Prentice Hall Professional Technical Reference
Publication date:
12/16/1998
Edition description:
Older Edition
Pages:
726
Product dimensions:
7.54(w) x 9.24(h) x 1.14(d)

Table of Contents

Chapter 1Introduction and a Taste of Java1
1.1Computer Basics2
1.2Designing Programs10
1.3A Taste of Java15
Chapter Summary25
Answers to Self-Test Questions26
Programming Exercises27
Chapter 2Primitive Types and Strings29
2.1Primitive Types, Assignment, and Expressions30
2.2The Class String55
2.3Documentation and Style63
2.4Keyboard and Screen I/O71
Chapter Summary79
Answers to Self-Test Questions79
Programming Exercises81
Chapter 3Flow of Control83
3.1Branching Statements84
3.2Java Loop Statements107
3.3Programming with Loops128
3.4The Type boolean138
Chapter Summary146
Answers to Self-Test Questions148
Programming Exercises152
Chapter 4Classes, Objects, and Methods155
4.1Class and Method Definitions156
4.2Information Hiding and Encapsulation184
4.3Objects and Reference206
Chapter Summary225
Answers to Self-Test Questions225
Programming Exercises230
Chapter 5Programming with Classes and Methods233
5.1Programming with Methods234
5.2Polymorphism258
5.3Constructors267
5.4Information Hiding Revisited275
5.5Packages (Optional)279
Chapter Summary282
Answers to Self-Test Questions283
Programming Exercises286
Chapter 6Inheritance289
6.1Inheritance Basics290
6.2Programming with Inheritance300
Chapter Summary317
Answers to Self-Test Questions317
Programming Exercises321
Chapter 7Event-Driven Programming Using the AWT323
7.1Some Background325
7.2Simple Window Interfaces327
7.3Components, Containers, and Layout Managers345
7.4Panels and Text Components365
7.5Adding Menus385
7.6Inner Classes (Optional)393
Chapter Summary396
Answers to Self-Test Questions397
Programming Exercises401
Chapter 8Exception Handling403
8.1Basic Exception Handling404
8.2Defining and Using Exception Classes415
Chapter Summary452
Answers to Self-Test Questions453
Programming Exercises454
Chapter 9Streams and File I/O457
9.1Streams and Simple File I/O458
9.2Exception Handling with File I/O477
9.3More Classes for File I/O510
9.4Text File I/O515
Chapter Summary529
Answers to Self-Test Questions530
Programming Exercises537
Chapter 10Arrays539
10.1Array Basics541
10.2Arrays In Classes and Methods552
10.3Programming With Arrays and Classes570
10.4Sorting Arrays587
Chapter Summary594
Answers to Self-Test Questions594
Programming Exercises599
Chapter 11Multidimensional Arrays and Vectors603
11.1Multidimensional Arrays604
11.2Vectors622
Chapter Summary634
Answers to Self-Test Questions634
Programming Exercises637
Chapter 12Recursion639
12.1The Basics of Recursion640
12.2Programming With Recursion657
Chapter Summary665
Answers to Self-Test Questions665
Programming Exercises671
Chapter 13Applets and Html673
13.1Html674
13.2Applets682
Chapter Summary691
Answers to Self-Test Questions691
Programming Exercises691
Appendix 1Reserved Words692
Appendix 2SavitchIn693
Appendix 3ASCII Character Set706
Appendix 4Javadoc707
Appendix 5Beyond Public and Private710
Appendix 6Cloning711
Index714

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >