• RETURN YOUR RENTAL
  • SIGN IN TO YOUR ACCOUNT
  • MARKETPLACE
  • HELP DESK
CART

(0) items

FREE SHIPPING on orders over $59!
Details.
Cheap Textbooks | Used Textbooks | Textbook Rental | Sell Textbooks | eTextbooks
  • Rent
    Textbooks
  •  
  • Buy
    Textbooks
  •  
  • Sell
    Textbooks
  •  
  • eTextbooks
  •  
  • Books
  •  
  • College Clothing
Java : How to Program,9780138993948
This item qualifies for
FREE SHIPPING!

FREE SHIPPING OVER $59!

Your order must be $59 or more, you must select US Postal Service Shipping as your shipping preference, and the "Group my items into as few shipments as possible" option when you place your order.

Bulk sales, PO's, Marketplace Items, eBooks, Apparel, and DVDs not included.

Java : How to Program

by Deitel, Harvey M.; Deitel, P. J.
Edition:
2nd
ISBN13:

9780138993948

ISBN10:
0138993947
Format:
Paperback
Pub. Date:
9/1/1997
Publisher(s):
Prentice Hall Professional Technical Reference
Upgraded Edition: Click here!
  • Other versions by this Author
List Price: $70.00

Buy New Textbook

Currently Available, Usually Ships in 24-48 Hours
$68.25

Rent Textbook

We're Sorry
Sold Out

Used Textbook

We're Sorry
Sold Out

eTextbook

We're Sorry
Not Available

More New and Used
from Private Sellers
Starting at $0.01

Questions About This Book?

What version or edition is this?
This is the 2nd edition with a publication date of 9/1/1997.
What is included with this book?
  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any CDs, lab manuals, study guides, etc.

Summary

Written by the authors of the world's best-selling introductory C and C++ texts, this state-of-the-art guide examines one of today's hottest computer languagesJava; the first general-purpose, object-oriented language that is truly platform-independent, Java 1.1 version. A Java 1.2 version will be published in April 1999.

Table of Contents

Preface xxvi
Chapter 1 Introduction to Computers and Java Applets
1(65)
1.1 Introduction
2(5)
1.2 What Is a Computer?
7(1)
1.3 Computer Organization
7(1)
1.4 Evolution of Operating Systems
8(1)
1.5 Personal, Distributed, and Client Server Computing
9(1)
1.6 Machine Languages, Assembly Languages, and High-level Languages
9(2)
1.7 History of C++
11(1)
1.8 History of Java
12(1)
1.9 Java Class Libraries
12(1)
1.10 Other High-level Languages
13(1)
1.11 Structured Programming
13(1)
1.12 Basics of a Typical Java Environment
14(3)
1.13 A Tour of the Book
17(4)
1.14 General Notes About Java and This Book
21(2)
1.15 Introduction to Java Programming
23(1)
1.16 A Simple Program: Printing a Line of Text
23(7)
1.17 Another Java Program: Adding Integers
30(7)
1.18 Memory Concepts
37(1)
1.19 Arithmetic
38(4)
1.20 Decision Making: Equality and Relational Operators
42(24)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Portability Tips
Software Engineering Observations
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 2 Developing Java Applications
66(54)
2.1 Introduction
68(1)
2.2 Algorithms
68(1)
2.3 Pseudocode
69(1)
2.4 Control Structures
69(3)
2.5 The if Selection Structure
72(2)
2.6 The if else Selection Structure
74(4)
2.7 The while Repetition Structure
78(2)
2.8 Formatting Algorithms: Case Study 1 (Counter-Controlled Repetition)
80(6)
2.9 Formulating Algorithms with Top-down, Stepwise Refinement: Case Study 2 (Sentinel-Controlled Repetition)
86(7)
2.10 Formulating Algorithms with Top-down, Stepwise Refinement: Case Study 3 (Nested Control Structures)
93(4)
2.11 Assignment Operators
97(1)
2.12 Increment and Decrement Operators
98(3)
2.13 Common Escape Sequences
101(2)
2.14 Primitive Data Types
103(17)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Portability Tip
Software Engineering Observations
Testing and Debugging Tip
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 3 Control Structures
120(46)
3.1 Introduction
122(1)
3.2 Essentials of Counter-Controlled Repetition
122(2)
3.3 The for Repetition Structure
124(4)
3.4 Examples Using the for Structure
128(4)
3.5 The switch Multiple-Selection Structure
132(5)
3.6 The do while Repetition Structure
137(2)
3.7 The break and continue Statements
139(2)
3.8 The Labeled break and continue Statements
141(3)
3.9 Logical Operators
144(6)
3.10 Structured Programming Summary
150(16)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Software Engineering Observation
Testing and Debugging Tip
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 4 Methods
166(62)
4.1 Introduction
168(1)
4.2 Program Modules in Java
168(1)
4.3 Math Class Methods
169(2)
4.4 Methods
171(1)
4.5 Method Definitions
172(7)
4.6 Java API Packages
179(2)
4.7 Random Number Generation
181(4)
4.8 Example: A Game of Chance
185(5)
4.9 Automatic Variables
190(1)
4.10 Scope Rules
191(2)
4.11 Recursion
193(4)
4.12 Example Using Recursion: The Fibonacci Series
197(4)
4.13 Recursion vs. Iteration
201(2)
4.14 Method Overloading
203(3)
4.15 Methods of the Applet Class
206(22)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Portability Tips
Software Engineering Observations
Testing and Debugging Tip
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 5 Arrays
228(60)
5.1 Introduction
230(1)
5.2 Arrays
230(2)
5.3 Declaring and Allocating Arrays
232(1)
5.4 Examples Using Arrays
233(11)
5.5 References and Reference Parameters
244(1)
5.6 Passing Arrays to Methods
245(3)
5.7 Sorting Arrays
248(2)
5.8 Searching Arrays: Linear Search and Binary Search
250(5)
5.9 Multiple-Subscripted Arrays
255(33)
Summary
Terminology
Common Programming Errors
Good Programming Practice
Performance Tips
Software Engineering Observations
Testing and Debugging Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Recursion Exercises
Chapter 6 Object-Based Programming
288(56)
6.1 Introduction
290(1)
6.2 Implementing a Time Abstract Data Type with a Class
291(6)
6.3 Class Scope
297(1)
6.4 Controlling Access to Members
298(2)
6.5 Creating Packages
300(3)
6.6 Initializing Class Objects: Constructors
303(1)
6.7 Using Overloaded Constructors
304(4)
6.8 Using Set and Get Methods
308(7)
6.9 Software Reusability
315(1)
6.10 Final Instance Variables
315(2)
6.11 Composition: Objects as Instance Variables of Other Classes
317(4)
6.12 Package Access
321(2)
6.13 Using the this Reference
323(4)
6.14 Finalizers
327(1)
6.15 Static Class Members
328(3)
6.16 Data Abstraction and Information Hiding
331(13)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Software Engineering Observations
Testing and Debugging Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 7 Object-Oriented Programming
344(60)
7.1 Introduction
346(2)
7.2 Superclasses and Subclasses
348(2)
7.3 protected Members
350(1)
7.4 Relationship between Superclass Objects and Subclass Objects
350(6)
7.5 Using Constructors and Finalizers in Subclasses
356(5)
7.6 Implicit Subclass-Object-to-Superclass-Object Conversion
361(1)
7.7 Software Engineering with Inheritance
362(1)
7.8 Composition vs. Inheritance
363(1)
7.9 Case Study: Point, Circle, Cylinder
363(6)
7.10 Introduction to Polymorphism
369(1)
7.11 Type Fields and switch Statements
370(1)
7.12 Dynamic Method Binding
370(1)
7.13 final Methods and Classes
371(1)
7.14 Abstract Superclasses and Concrete Classes
371(1)
7.15 Polymorphism Examples
372(2)
7.16 Case Study: A Payroll System Using Polymorphism
374(8)
7.17 New Classes and Dynamic Binding
382(1)
7.18 Case Study: Inheriting Interface and Implementation
382(7)
7.19 Case Study: Creating and Using Interfaces
389(5)
7.20 Type-Wrapper Classes for Primitive Types
394(10)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Software Engineering Observations
Testing and Debugging Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 8 Strings and Characters
404(64)
8.1 Introduction
406(1)
8.2 Fundamentals of Characters and Strings
407(1)
8.3 String Constructors
407(3)
8.4 String Methods length, charAT, getChars, getBytes
410(2)
8.5 Comparing Strings
412(6)
8.6 String Method hashCode
418(1)
8.7 Locating Characters and Substrings in Strings
419(3)
8.8 Extracting Substrings from Strings
422(1)
8.9 Concatenating Strings
423(1)
8.10 Miscellaneous String Methods
424(2)
8.11 Using String Method valueOf
426(2)
8.12 String Method intern
428(3)
8.13 StringBuffer Class
431(1)
8.14 StringBuffer Constructors
431(2)
8.15 StringBuffer length, capacity, setLength and ensureCapacity Methods
433(2)
8.16 StringBuffer charAt, setCharAt, getChars and reverse Methods
435(1)
8.17 StringBuffer append Methods
436(2)
8.18 StringBuffer insert Methods
438(2)
8.19 Character Class Examples
440(8)
8.20 Class StringTokenizer
448(3)
8.21 A Card Shuffling and Dealing Simulation
451(17)
Summary
Terminology
Common Programming Errors
Performance Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Special Section: Advanced String Manipulation Exercises
Special Section: Challenging String Manipulation Projects
Chapter 9 Graphics
468(48)
9.1 Introduction
470(1)
9.2 Graphics Contexts and Graphics Objects
471(1)
9.3 Drawing Strings, Characters, and Bytes
472(3)
9.4 Color Control
475(4)
9.5 Font Control
479(10)
9.6 Drawing Lines
489(1)
9.7 Drawing Rectangles
490(1)
9.8 Drawing Rounded Rectangles
491(2)
9.9 Drawing Three-Dimensional Rectangles
493(3)
9.10 Drawing Ovals
496(1)
9.11 Drawing Arcs
497(2)
9.12 Drawing Polygons
499(5)
9.13 Screen Manipulation
504(1)
9.14 Paint Modes
505(11)
Summary
Terminology
Common Programming Errors
Portability Tips
Software Engineering Observation
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 10 Basic Graphical User Interface Components
516(66)
10.1 Introduction
518(3)
10.2 Labels
521(2)
10.3 Push Buttons
523(5)
10.4 Text Fields
528(3)
10.5 Choice Buttons
531(4)
10.6 Checkboxes and Radio Buttons
535(6)
10.7 Single-Selection Lists
541(3)
10.8 Multiple-Selection Lists
544(2)
10.9 Mouse Events
546(4)
10.10 Mouse Event Adapter Classes
550(5)
10.11 Keyboard Events
555(3)
10.12 FlowLayout Layout Manager
558(3)
10.13 BorderLayout Layout Manager
561(4)
10.14 GridLayout Layout Manager
565(2)
10.15 Panels
567(15)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tip
Portability Tip
Software Engineering Observation
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 11 Advanced Graphical User Interface Components
582(66)
11.1 Introduction
584(1)
11.2 TextAreas
584(4)
11.3 Creating a Customized Subclass of Canvas
588(3)
11.4 Creating a Self-Contained Subclass of Canvas
591(4)
11.5 Scrollbars
595(6)
11.6 Frames
601(4)
11.7 Converting an Applet into a GUI-based Application
605(3)
11.8 Using Menus with Frames
608(6)
11.9 Dialogs
614(7)
11.10 ScrollPane: A Scrolling Container Class
621(2)
11.11 Using PopupMenu Objects
623(3)
11.12 Layout Managers
626(1)
11.13 CardLayout Layout Manager
626(4)
11.14 GridBagLayout Layout Manager
630(7)
11.15 GridBagLayout Layout Manager Variation: Using GridBagCon-straints Constants RELATIVE and REMAINDER
637(11)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Software Engineering Observations
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 12 Exception Handling
648(40)
12.1 Introduction
650(3)
12.2 When Exception Handling Should Be Used
653(1)
12.3 Other Error-Handling Techniques
653(1)
12.4 The Basics of Java Exception Handling
653(1)
12.5 A Simple Exception Handling Example: Divide by Zero
654(6)
12.6 Try Blocks
660(1)
12.7 Throwing an Exception
660(1)
12.8 Catching an Exception
661(2)
12.9 Rethrowing an Exception
663(1)
12.10 Throws Clause
663(6)
12.11 Constructors, Finalizers, and Exception Handling
669(1)
12.12 Exceptions and Inheritance
670(1)
12.13 finally Block
670(5)
12.14 Using printStackTrace and getMessage
675(13)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Software Engineering Observations
Testing and Debugging Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 13 Multithreading
688(42)
13.1 Introduction
690(2)
13.2 Class Thread: An Overview of the Thread Methods
692(2)
13.3 Thread States: Life Cycle of a Thread
694(1)
13.4 Thread Priorities and Thread Scheduling
695(4)
13.5 Thread Synchronization
699(1)
13.6 Producer Consumer Relationship without Thread Synchronization
700(4)
13.7 Producer Consumer Relationship with Thread Synchronization
704(4)
13.8 Producer Consumer Relationship: The Circular Buffer
708(6)
13.9 Daemon Threads
714(1)
13.10 Runnable Interface
714(5)
13.11 Thread Groups
719(11)
Summary
Terminology
Common Programming Errors
Performance Tips
Portability Tips
Software Engineering Observation
Testing and Debugging Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 14 Multimedia: Images, Animation and Audio
730(40)
14.1 Introduction
732(1)
14.2 Loading, Displaying and Scaling Images
733(2)
14.3 Introduction to Animation: An Image Loop
735(3)
14.4 Graphics Double Buffering
738(4)
14.5 Using the MediaTracker to Monitor Image Loading
742(3)
14.6 Using a Separate Thread to Run an Animation
745(3)
14.7 Loading and Playing Audio Clips
748(2)
14.8 Customizing Applets via the HTML param Tag
750(4)
14.9 Image Maps
754(16)
Summary
Terminology
Good Programming Practice
Performance Tips
Portability Tip
Software Engineering Observation
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 15 Files and Streams
770(62)
15.1 Introduction
772(1)
15.2 The Data Hierarchy
773(2)
15.3 Files and Streams
775(4)
15.4 Creating a Sequential-Access File
779(5)
15.5 Reading Data from a Sequential-Access File
784(9)
15.6 Updating Sequential-Access Files
793(1)
15.7 Random-Access Files
793(1)
15.8 Creating a Random-Access File
794(4)
15.9 Writing Data Randomly to a Random-Access File
798(3)
15.10 Reading Data Sequentially from a Random-Access File
801(4)
15.11 Example: A Transaction Processing Program
805(11)
15.12 Class File
816(4)
15.13 Input/Output of Objects
820(12)
Summary
Terminology
Common Programming Errors
Good Programming Practices
Performance Tips
Software Engineering Observation
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 16 Networking
832(48)
16.1 Introduction
834(1)
16.2 Manipulating URLs
835(5)
16.3 Using a URL Stream Connection to Read a File on a Server
840(2)
16.4 Establishing a Simple Server (Using Stream Sockets)
842(2)
16.5 Establishing a Simple Client (Using Stream Sockets)
844(1)
16.6 Client/Server Interaction with Stream Socket Connections
845(6)
16.7 Connectionless Client/Server Interaction with Datagrams
851(7)
16.8 Client/Server Tic-Tac-Toe Using a Multithreaded Server
858(11)
16.9 Security and the Network
869(11)
Summary
Terminology
Common Programming Errors
Performance Tips
Portability Tip
Software Engineering Observations
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Chapter 17 Data Structures
880(52)
17.1 Introduction
882(1)
17.2 Self-Referential Classes
883(1)
17.3 Dynamic Memory Allocation
883(1)
17.4 Linked Lists
884(10)
17.5 Stacks
894(4)
17.6 Queues
898(3)
17.7 Trees
901(31)
Summary
Terminology
Common Programming Errors
Good Programming Practice
Performance Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Special Section: Building Your Own Compiler
Chapter 18 Java Utilities Package and Bit Manipulation
932(50)
18.1 Introduction
934(1)
18.2 Vector Class and Enumeration Interface
934(6)
18.3 Stack Class
940(4)
18.4 Dictionary Class
944(1)
18.5 HashTable Class
944(6)
18.6 Properties Class
950(4)
18.7 Random Class
954(1)
18.8 Bit Manipulation and the Bitwise Operators
955(14)
18.9 BitSet Class
969(13)
Summary
Terminology
Common Programming Errors
Performance Tips
Testing and Debugging Tips
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Appendix A Demos 982(5)
A.1 Demos 982(1)
A.2 The Sites 983(4)
Appendix B Java Resources 987(4)
B.1 Java Resources 987(2)
B.2 Java Frequently Asked Questions (FAQs) 989(1)
B.3 Tutorials for Learning Java 989(1)
B.4 Java Books 989(1)
B.5 Java Newsgroups 989(1)
B.6 Virtual Reality Modeling Language (VRML) 990(1)
Appendix C Operator Precedence Chart 991(2)
Appendix D ASCII Character Set 993(1)
Appendix E Number Systems 994(14)
E.1 Introduction 995(3)
E.2 Abbreviating Binary Numbers as Octal Numbers and Hexadecimal Numbers 998(1)
E.3 Converting from Octal Numbers and Hexadecimal Numbers to Binary Numbers 999(1)
E.4 Converting from Binary, Octal, or Hexadecimal to Decimal 999(1)
E.5 Converting from Decimal to Binary, Octal, or Hexadecimal 1000(2)
E.6 Negative Binary Numbers: Two's Complement Notation 1002(6)
Summary
Terminology
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Appendix F Object-Oriented Elevator Simulator 1008(13)
F.1 Introduction 1009(1)
F.2 Problem Statement 1010(1)
F.3 Elevator Laboratory Assignment 1 1011(1)
F.4 Elevator Laboratory Assignment 2 1011(2)
F.5 Elevator Laboratory Assignment 3 1013(1)
F.6 Elevator Laboratory Assignment 4 1014(1)
F.7 Elevator Laboratory Assignment 5 1015(1)
F.8 Elevator Laboratory Assignment 6 1015(1)
F.9 Elevator Laboratory Assignment 7 1015(2)
F.10 Elevator Laboratory Assignment 8 1017(1)
F.11 Elevator Laboratory Assignment 9 1017(1)
F.12 Elevator Laboratory Assignment 10 1018(1)
F.13 Elevator Laboratory Assignment 11 1018(1)
F.14 Elevator Laboratory Assignment 12 1019(1)
F.15 Design Review Questions 1020(1)
F.16 Recommended Modifications 1020(1)
Bibliography 1021(5)
Index 1026


Please wait while the item is added to your cart...
Online Bookstore | VeriSign Service
  • Affiliate Program
  • Browse Book Categories
  • Bulk Orders
  • Buy Textbooks
  • Careers
  • College Clothing
  • Contact Us
  • eCampus Blog
  • eCampus Coupons
  • Gift Certificates
  • Help Desk
  • Link to Us
  • Marketplace
  • Media
  • Order Status
  • Our Bookstores
  • Press
  • Rent Textbooks
  • Return Policy
  • Sell Textbooks
  • Shipping
  • Site Map
  • Terms & Conditions
  • Virtual Bookstores
Hacker Safe Certified Site

Need Help?

Copyright © 1999-2013

  • PayPal