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

Paperback (Print)
Buy New
Buy New from BN.com
$55.57
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 97%)
Other sellers (Paperback)
  • All (32) from $1.99   
  • New (3) from $7.95   
  • Used (29) from $1.99   

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.
Read More Show Less

Editorial Reviews

Booknews
A book/CD-ROM text using a conversational style to teach basic programming techniques through the Java language, for a first course in programming and computer science. After an introduction to object- oriented programming and concepts, Java coverage encompasses key language features, with an emphasis on applications over applets. Learning features include quizes and answers, chapter summaries, and programming exercises. The CD-ROM contains examples programs and software. Requires no mathematics beyond high school algebra. Annotation c. by Book News, Inc., Portland, Or.
Read More Show Less

Product Details

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

Read an Excerpt

PREFACE: Preface for Students
This book is designed to teach you the Java programming language, and even more importantly, to teach you basic programming techniques. This book requires no previous programming experience and no mathematics other than some very simple high school algebra. However, to get the full benefit of the book, you should have a version of Java available on your computer, so that you can practice with the examples and techniques given in the book. You should have a version of Java with a version number of either 1.1.x or higher or 1.2.x or higher. (The exact number that is filled in for the x is not critical. The x need not even be present. If it says only "version 1.1" or "version 1.2," that is fine. If you have an earlier version of Java, numbered 1.0.x, that will not be a problem for most of the book, but it will definitely be a problem for Chapter 7, and, as you will see, the latest version of Java can be obtained easily and inexpensively.)

Copies of the Programs from the Text
This book contains a CD that includes all the programs and other software examples in the book, so that you can practice with these examples without having to type them into your computer.

Obtaining a Copy of Java
The CD that comes with this book also includes a version of Code Warrior, which is an integrated development environment including an editor and other utilities in addition to the Java language. The CD includes a version of Code Warrior for PC Windows environments and a version for Macintosh environments. The version included on the CD is Code Warrior Lite, which allows you to sample Code Warrior on programs from thetext to see if you wish to purchase the full version at a special student rate. Your local college or university bookstore should stock the full student version of Code Warrior. The Code Warrior environment provided on the CD will allow you to run the programs in this book. If you want to write other Java programs, you will need to purchase the full version of Code Warrior or obtain some other version of Java. If you want an alternative to Code Warrior, a version of Java can be obtained free of charge from Sun Microsystems. At the time of printing, a copy of Java version 1.1.x could be downloaded free of charge from the following web site:
...
Read More Show Less

Table of Contents

Chapter 1 Introduction and a Taste of Java 1
1.1 Computer Basics 2
1.2 Designing Programs 10
1.3 A Taste of Java 15
Chapter Summary 25
Answers to Self-Test Questions 26
Programming Exercises 27
Chapter 2 Primitive Types and Strings 29
2.1 Primitive Types, Assignment, and Expressions 30
2.2 The Class String 55
2.3 Documentation and Style 63
2.4 Keyboard and Screen I/O 71
Chapter Summary 79
Answers to Self-Test Questions 79
Programming Exercises 81
Chapter 3 Flow of Control 83
3.1 Branching Statements 84
3.2 Java Loop Statements 107
3.3 Programming with Loops 128
3.4 The Type boolean 138
Chapter Summary 146
Answers to Self-Test Questions 148
Programming Exercises 152
Chapter 4 Classes, Objects, and Methods 155
4.1 Class and Method Definitions 156
4.2 Information Hiding and Encapsulation 184
4.3 Objects and Reference 206
Chapter Summary 225
Answers to Self-Test Questions 225
Programming Exercises 230
Chapter 5 Programming with Classes and Methods 233
5.1 Programming with Methods 234
5.2 Polymorphism 258
5.3 Constructors 267
5.4 Information Hiding Revisited 275
5.5 Packages (Optional) 279
Chapter Summary 282
Answers to Self-Test Questions 283
Programming Exercises 286
Chapter 6 Inheritance 289
6.1 Inheritance Basics 290
6.2 Programming with Inheritance 300
Chapter Summary 317
Answers to Self-Test Questions 317
Programming Exercises 321
Chapter 7 Event-Driven Programming Using the AWT 323
7.1 Some Background 325
7.2 Simple Window Interfaces 327
7.3 Components, Containers, and Layout Managers 345
7.4 Panels and Text Components 365
7.5 Adding Menus 385
7.6 Inner Classes (Optional) 393
Chapter Summary 396
Answers to Self-Test Questions 397
Programming Exercises 401
Chapter 8 Exception Handling 403
8.1 Basic Exception Handling 404
8.2 Defining and Using Exception Classes 415
Chapter Summary 452
Answers to Self-Test Questions 453
Programming Exercises 454
Chapter 9 Streams and File I/O 457
9.1 Streams and Simple File I/O 458
9.2 Exception Handling with File I/O 477
9.3 More Classes for File I/O 510
9.4 Text File I/O 515
Chapter Summary 529
Answers to Self-Test Questions 530
Programming Exercises 537
Chapter 10 Arrays 539
10.1 Array Basics 541
10.2 Arrays In Classes and Methods 552
10.3 Programming With Arrays and Classes 570
10.4 Sorting Arrays 587
Chapter Summary 594
Answers to Self-Test Questions 594
Programming Exercises 599
Chapter 11 Multidimensional Arrays and Vectors 603
11.1 Multidimensional Arrays 604
11.2 Vectors 622
Chapter Summary 634
Answers to Self-Test Questions 634
Programming Exercises 637
Chapter 12 Recursion 639
12.1 The Basics of Recursion 640
12.2 Programming With Recursion 657
Chapter Summary 665
Answers to Self-Test Questions 665
Programming Exercises 671
Chapter 13 Applets and Html 673
13.1 Html 674
13.2 Applets 682
Chapter Summary 691
Answers to Self-Test Questions 691
Programming Exercises 691
Appendix 1 Reserved Words 692
Appendix 2 SavitchIn 693
Appendix 3 ASCII Character Set 706
Appendix 4 Javadoc 707
Appendix 5 Beyond Public and Private 710
Appendix 6 Cloning 711
Index 714
Read More Show Less

Preface

PREFACE: Preface for Students
This book is designed to teach you the Java programming language, and even more importantly, to teach you basic programming techniques. This book requires no previous programming experience and no mathematics other than some very simple high school algebra. However, to get the full benefit of the book, you should have a version of Java available on your computer, so that you can practice with the examples and techniques given in the book. You should have a version of Java with a version number of either 1.1.x or higher or 1.2.x or higher. (The exact number that is filled in for the x is not critical. The x need not even be present. If it says only "version 1.1" or "version 1.2," that is fine. If you have an earlier version of Java, numbered 1.0.x, that will not be a problem for most of the book, but it will definitely be a problem for Chapter 7, and, as you will see, the latest version of Java can be obtained easily and inexpensively.)

Copies of the Programs from the Text
This book contains a CD that includes all the programs and other software examples in the book, so that you can practice with these examples without having to type them into your computer.

Obtaining a Copy of Java
The CD that comes with this book also includes a version of Code Warrior, which is an integrated development environment including an editor and other utilities in addition to the Java language. The CD includes a version of Code Warrior for PC Windows environments and a version for Macintosh environments. The version included on the CD is Code Warrior Lite, which allows you to sample Code Warrior on programs fromthetext to see if you wish to purchase the full version at a special student rate. Your local college or university bookstore should stock the full student version of Code Warrior. The Code Warrior environment provided on the CD will allow you to run the programs in this book. If you want to write other Java programs, you will need to purchase the full version of Code Warrior or obtain some other version of Java. If you want an alternative to Code Warrior, a version of Java can be obtained free of charge from Sun Microsystems. At the time of printing, a copy of Java version 1.1.x could be downloaded free of charge from the following web site:
...
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 11 Customer Reviews
  • Anonymous

    Posted March 3, 2002

    This is an outstanding book

    This book is very detailed.I was struggling with the language until i found this book.I even sent an e-mail to walter S. to congratulate him. The book is very well organized;the author went into very little details that you won't find in many other books.I'm a computer science major at AUGSBURG COLLEGE in minnesota and i can tell you that i'm acing people in class in the matter of programming in java. This book gives you a good foundation of programming with java. Get this book an also 'Java from the begining' from K.N.KING.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted April 27, 2001

    Take two for java.

    I've gotten three books for java programming, and I must say this. This book is not the best book i've read, and it's by far certainly not the worst. I would suggest getting this book if you've read other books, and I would also suggest that you look elsewhere. My experience with Java was first with this book, and it unfortunately made me almost not want to take this course a second time.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted January 31, 2001

    I can't believe any of the reviews listed here.

    I've read a number of Java books and can honestly say this is by far the best I've read yet. In actuality it was the first of three begginners books I read for the sake of developing a solid base. Perhaps the the indiviuals that gave this book poor reviews have had no experience with other books or are not quite what they seem. Take it upon yourself to pick this book up and open it. You'll find comprehensive, clear text. Common mistakes that aren't obvious to a beginner are exposed and explained. Programming poblems are given at the end of each chapter, as well as the solutions, to solidify you cumulating knowledge. The authors not only know there stuff, but know how to teach it.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted December 12, 2000

    The book completely stinks.

    I think Savitch did a poor job of using examples to illustrate programming for beginning programmer, such as freshmen in college. The book is very hard to understand on the point he is trying to get accross on each chapter. Also the reading is very boring. The book is not precise on the examples, but his review questions at the end of every chapter is pretty easy understanding.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted November 5, 2000

    This book is Terrible

    I am a student trying to learn Java through this book. It doesn't really help AT ALL! I think we need a better book. Stay clear at all costs, Unless, you really don't want to learn Java.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted November 6, 2000

    about the book

    It is very good book

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted October 4, 2000

    A book w/ all kinds of boring details....

    This is the worst book that I've ever read. First of all, the content of this book is so ambiguous. Also, the software enclosed with this book is expired. However, my CS professor just forced us to use it. I'm ending up to buy an additional java book. If u still have choices, buy another one! Be smart!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted July 19, 2000

    Needs a lot of work

    This book is very unclear on how to get started with Java- including downloading JDK 1.2.2 and loading up Java. The Code Warrior on the cd rom did not work and we had to use an instructor-provided cd to compile java code. This book suffers from flaws found in most computer books today: it is choppy with poorly defined reserved words and syntax. There are functions mentioned but not shown in context of a valid program.For example, i read the passage on using 'public static final' for constants and it did nothing. The index is very poor in this book and many of my classmates stopped reading the book early in the class because it only made us more confused. To improve this the author could have had more examples of programs and then explained more fully how each of the components of those programs interacted and what their functions are.In Java individual words have important meanings and I found myself confused by many terms i did not understand even after reading the text several times. The author also lists an email address for feedback and i did not find him particularly receptive to such feedback.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted July 24, 2000

    an engineering student

    This text is very confusing, and very hard to follow. It shows very poor examples of programs especially in the first 4 chapters. This can be very problematic for the inexpierienced programmer. It also fails to give very good definitions of key terms or reserve words making it a poor reference.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted June 30, 2000

    An expensive book for its content

    Since Java is my first programming language, I wanted to purchase a book that would really help me to understand Java. I followed the programming exercises, but nothing would compiled because the author just didn't explain how to retrieve one of his class files. As a result, I couldn't complete any of its exercises. In addition, this was one of the most expensive Java books. Definitely not worth its money. In my opinion, Thinking in Java is much better.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted June 25, 2000

    Not good for the beginner

    I bought this book as part of a college class and it is not a bad book, simply not well written for the Java neophyte. I could not get Code warrior to run from the cdrom and how to get started was not well defined. I particularly had problems with compiling and running Java code using WinEdit, as it compiled without errors code written with deliberate errors and the Run feature did not allow you to configure for standalone graphical usage. This text is written for those who have some real programming knowledge or background. It is also quite pricey for what you actually get and i wish that more examples were given and a better index designed. I had a very difficult time using the index to find things like how to construct message boxes and output only positive integers,etc..

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 11 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)