Test bank for Big Java: Early Objects 6th Edition Cay S. Horstmann
Product details:
- ISBN-10 : 1119056446
- ISBN-13 : 978-1119056447
- Author: Cay Horstmann
Cay Horstmann’s sixth edition of Big Java, Early Objects provides an approachable introduction to fundamental programming techniques and design skills, helping students master basic concepts and become competent coders. Updates for the Java 8 software release and additional visual design elements make this student-friendly text even more engaging. The text is known for its realistic programming examples, great quantity and variety of homework assignments, and programming exercises that build student problem-solving abilities. This edition now includes problem solving sections, more example code online, and exercise from Science and Business. This text is an unbound, three hole punched version.
Table contents:
1. Introduction
1.1 Computer Programs
InterActivities
1.2 The Anatomy of a Computer
InterActivities
Computing & Society 1.1 Computers Are Everywhere
1.3 The Java Programming Language
InterActivities
1.4 Becoming Familiar with Your Programming Environment
InterActivities
Programming Tip 1.1
Backup Copies
1.5 Analyzing Your First Program
Syntax 1.1 Java Program
InterActivities
More InterActivities
Common Error 1.1
Omitting Semicolons
1.6 Errors
InterActivities
Common Error 1.2
Misspelling Words
1.7 Problem Solving: Algorithm Design
1.7.1 The Algorithm Concept
1.7.2 An Algorithm for Solving an Investment Problem
1.7.3 Pseudocode
1.7.4 From Algorithms to Programs
InterActivities
How To 1.1
Describing an Algorithm with Pseudocode
Worked Example 1.1
Writing an Algorithm for Tiling a Floor
Chapter Summary
Review Exercises
Practice Exercises
Programming Projects
2. Using Objects
2.1 Objects and Classes
2.1.1 Using Objects
2.1.2 Classes
InterActivities
2.2 Variables
2.2.1 Variable Declarations
Syntax 2.1 Variable Declaration
InterActivities
2.2.2 Types
InterActivities
2.2.3 Names
InterActivities
2.2.4 Comments
InterActivities
2.2.5 Assignment
Syntax 2.2 Assignment
InterActivities
More InterActivities
Common Error 2.1
Using Undeclared or Uninitialized Variables
Common Error 2.2
Confusing Variable Declarations and Assignment Statements
Programming Tip 2.1
Choose Descriptive Variable Names
2.3 Calling Methods
2.3.1 The Public Interface of a Class
2.3.2 Method Arguments
2.3.3 Return Values
2.3.4 Method Declarations
InterActivities
Programming Tip 2.2
Learn By Trying
2.4 Constructing Objects
Syntax 2.3 Object Construction
InterActivities
Common Error 2.3
Trying to Invoke a Constructor Like a Method
2.5 Accessor and Mutator Methods
InterActivities
2.6 The API Documentation
2.6.1 Browsing the API Documentation
2.6.2 Packages
Syntax 2.4 Importing a Class from a Package
InterActivities
Programming Tip 2.3
Don’t Memorize—Use Online Help
2.7 Implementing a Test Program (Testing Track)
InterActivities
More InterActivities
Special Topic 2.1
Testing Classes in an Interactive Environment
Worked Example 2.1
How Many Days Have You Been Alive?
Worked Example 2.2
Working with Pictures
2.8 Object References
InterActivities
Computing & Society 2.1 Computer Monopoly
2.9 Graphical Applications (Graphics Track)
2.9.1 Frame Windows
2.9.2 Drawing on a Component
2.9.3 Displaying a Component in a Frame
InterActivities
More InterActivities
2.10 Ellipses, Lines, Text, and Color (Graphics Track)
2.10.1 Ellipses and Circles
2.10.2 Lines
2.10.3 Drawing Text
2.10.4 Colors
InterActivities
More InterActivities
Chapter Summary
Review Exercises
Practice Exercises
Programming Projects
3. Implementing Classes
3.1 Instance Variables and Encapsulation
3.1.1 Instance Variables
Syntax 3.1 Instance Variable Declaration
3.1.2 The Methods of the Counter Class
3.1.3 Encapsulation
InterActivities
3.2 Specifying the Public Interface of a Class
3.2.1 Specifying Methods
3.2.2 Specifying Constructors
Syntax 3.2 Class Declaration
3.2.3 Using the Public Interface
3.2.4 Commenting the Public Interface
InterActivities
Common Error 3.1
Declaring a Constructor as void
Programming Tip 3.1
The javadoc Utility
3.3 Providing the Class Implementation
3.3.1 Providing Instance Variables
3.3.2 Providing Constructors
3.3.3 Providing Methods
InterActivities
More InterActivities
Common Error 3.2
Ignoring Parameter Variables
How To 3.1
Implementing a Class
Worked Example 3.1
Making a Simple Menu
3.4 Unit Testing (Testing Track)
InterActivities
Computing & Society 3.1 Electronic Voting Machines
3.5 Problem Solving: Tracing Objects
InterActivities
3.6 Local Variables
InterActivities
Common Error 3.3
Duplicating Instance Variables in Local Variables
Common Error 3.4
Providing Unnecessary Instance Variables
Common Error 3.5
Forgetting to Initialize Object References in a Constructor
3.7 The this Reference
InterActivities
Special Topic 3.1
Calling One Constructor from Another
3.8 Shape Classes (Graphics Track)
InterActivities
More InterActivities
How To 3.2
Drawing Graphical Shapes
Chapter Summary
Review Exercises
Practice Exercises
Programming Projects
4. Fundamental Data Types
4.1 Numbers
4.1.1 Number Types
4.1.2 Constants
Syntax 4.1 Constant Declaration
InterActivities
Special Topic 4.1
Big Numbers
Programming Tip 4.1
Do Not Use Magic Numbers
4.2 Arithmetic
4.2.1 Arithmetic Operators
4.2.2 Increment and Decrement
4.2.3 Integer Division and Remainder
4.2.4 Powers and Roots
4.2.5 Converting Floating-Point Numbers to Integers
Syntax 4.2 Cast
InterActivities
More InterActivities
Common Error 4.1
Unintended Integer Division
Common Error 4.2
Unbalanced Parentheses
Programming Tip 4.2
Spaces in Expressions
Java 8 Note 4.1
Avoiding Negative Remainders
Special Topic 4.2
Combining Assignment and Arithmetic
Special Topic 4.3
Instance Methods and Static Methods
Computing & Society 4.1 The Pentium Floating-Point Bug
4.3 Input and Output
4.3.1 Reading Input
Syntax 4.3 Input Statement
4.3.2 Formatted Output
InterActivities
More InterActivities
How To 4.1
Carrying Out Computations
Worked Example 4.1
Computing the Volume and Surface Area of a Pyramid
4.4 Problem Solving: First Do It By Hand
InterActivities
More InterActivities
Worked Example 4.2
Computing Travel Time
4.5 Strings
4.5.1 The String Type
4.5.2 Concatenation
4.5.3 String Input
4.5.4 Escape Sequences
4.5.5 Strings and Characters
4.5.6 Substrings
InterActivities
More InterActivities
Programming Tip 4.3
Reading Exception Reports
Special Topic 4.4
Using Dialog Boxes for Input and Output
Computing & Society 4.2 International Alphabets and Unicode
Chapter Summary
Review Exercises
Practice Exercises
Programming Projects
5. Decisions
5.1 The if Statement
Syntax 5.1 if Statement
InterActivities
More InterActivities
Programming Tip 5.1
Brace Layout
Programming Tip 5.2
Always Use Braces
Common Error 5.1
A Semicolon After the if Condition
Programming Tip 5.3
Tabs
Special Topic 5.1
The Conditional Operator
Programming Tip 5.4
Avoid Duplication in Branches
5.2 Comparing Values
5.2.1 Relational Operators
Syntax 5.2 Comparisons
5.2.2 Comparing Floating-Point Numbers
5.2.3 Comparing Strings
5.2.4 Comparing Objects
5.2.5 Testing for null
InterActivities
More InterActivities
Common Error 5.2
Using == to Compare Strings
How To 5.1
Implementing an if Statement
Worked Example 5.1
Extracting the Middle
Computing & Society 5.1 Denver’s Luggage Handling System
5.3 Multiple Alternatives
InterActivities
More InterActivities
Special Topic 5.2
The switch Statement
5.4 Nested Branches
InterActivities
More InterActivities
Programming Tip 5.5
Hand-Tracing
Common Error 5.3
The Dangling else Problem
Special Topic 5.3
Block Scope
Special Topic 5.4
Enumeration Types
5.5 Problem Solving: Flowcharts
InterActivities
5.6 Problem Solving: Selecting Test Cases (Testing Track)
InterActivities
Programming Tip 5.6
Make a Schedule and Make Time for Unexpected Problems
Special Topic 5.5
Logging
5.7 Boolean Variables and Operators
InterActivities
More InterActivities
Common Error 5.4
Combining Multiple Relational Operators
Common Error 5.5
Confusing && and || Conditions
Special Topic 5.6
Short-Circuit Evaluation of Boolean Operators
Special Topic 5.7
De Morgan’s Law
5.8 Application: Input Validation
InterActivities
More InterActivities
Computing & Society 5.2 Artificial Intelligence
Chapter Summary
Review Exercises
Practice Exercises
Programming Projects
6. Loops
6.1 The while Loop
Syntax 6.1 while Statement
InterActivities
More InterActivities
Common Error 6.1
Don’t Think “Are We There Yet?”
Common Error 6.2
Infinite Loops
Common Error 6.3
Off-by-One Errors
6.2 Problem Solving: Hand-Tracing
InterActivities
More InterActivities
Computing & Society 6.1 Digital Piracy
6.3 The for Loop
Syntax 6.2 for Statement
InterActivities
More InterActivities
Programming Tip 6.1
Use for Loops for Their Intended Purpose Only
Programming Tip 6.2
Choose Loop Bounds That Match Your Task
Programming Tip 6.3
Count Iterations
Special Topic 6.1
Variables Declared in a for Loop Header
6.4 The do Loop
InterActivities
More InterActivities
Programming Tip 6.4
Flowcharts for Loops
6.5 Application: Processing Sentinel Values
InterActivities
More InterActivities
Special Topic 6.2
Redirection of Input and Output
Special Topic 6.3
The “Loop and a Half” Problem
Special Topic 6.4
The break and continue Statements
6.6 Problem Solving: Storyboards
InterActivities
More InterActivities
6.7 Common Loop Algorithms
6.7.1 Sum and Average Value
InterActivities
6.7.2 Counting Matches
InterActivities
More InterActivities
6.7.3 Finding the First Match
InterActivities
More InterActivities
6.7.4 Prompting Until a Match is Found
InterActivities
6.7.5 Maximum and Minimum
InterActivities
6.7.6 Comparing Adjacent Values
InterActivities
More InterActivities
How To 6.1
Writing a Loop
Worked Example 6.1
Credit Card Processing
6.8 Nested Loops
InterActivities
Worked Example 6.2
Manipulating the Pixels in an Image
6.9 Application: Random Numbers and Simulations
6.9.1 Generating Random Numbers
InterActivities
6.9.2 The Monte Carlo Method
InterActivities
More InterActivities
6.10 Using a Debugger (Testing Track)
InterActivities
How To 6.2
Debugging
Worked Example 6.3
A Sample Debugging Session
Computing & Society 6.2 The First Bug
Chapter Summary
Review Exercises
Practice Exercises
Programming Projects
7. Arrays and Array Lists
7.1 Arrays
7.1.1 Declaring and Using Arrays
Syntax 7.1 Arrays
InterActivities
More InterActivities
7.1.2 Array References
InterActivities
7.1.3 Using Arrays with Methods
7.1.4 Partially Filled Arrays
InterActivities
More InterActivities
Common Error 7.1
Bounds Errors
Common Error 7.2
Uninitialized and Unfilled Arrays
Programming Tip 7.1
Use Arrays for Sequences of Related Items
Programming Tip 7.2
Make Parallel Arrays into Arrays of Objects
Special Topic 7.1
Methods with a Variable Number of Arguments
Computing & Society 7.1 Computer Viruses
7.2 The Enhanced for Loop
Syntax 7.2 The Enhanced for Loop
InterActivities
7.3 Common Array Algorithms
7.3.1 Filling
InterActivities
More InterActivities
7.3.2 Sum and Average Value
InterActivities
7.3.3 Maximum and Minimum
InterActivities
7.3.4 Element Separators
7.3.5 Linear Search
InterActivities
More InterActivities
7.3.6 Removing an Element
InterActivities
7.3.7 Inserting an Element
InterActivities
7.3.8 Swapping Elements
InterActivities
7.3.9 Copying Arrays
InterActivities
More InterActivities
7.3.10 Reading Input
Common Error 7.3
Underestimating the Size of a Data Set
Special Topic 7.2
Sorting with the Java Library
7.4 Problem Solving: Adapting Algorithms
InterActivities
More InterActivities
How To 7.1
Working with Arrays
Worked Example 7.1
Rolling the Dice
7.5 Problem Solving: Discovering Algorithms by Manipulating Physical Objects
InterActivities
7.6 Two-Dimensional Arrays
7.6.1 Declaring Two-Dimensional Arrays
Syntax 7.3 Two-Dimensional Array Declaration
InterActivities
7.6.2 Accessing Elements
InterActivities
7.6.3 Locating Neighboring Elements
More InterActivities
7.6.4 Accessing Rows and Columns
InterActivities
More InterActivities
Worked Example 7.2
A World Population Table
Special Topic 7.3
Two-Dimensional Arrays with Variable Row Lengths
Special Topic 7.4
Multidimensional Arrays
7.7 Array Lists
Syntax 7.4 Array Lists
7.7.1 Declaring and Using Array Lists
InterActivities
7.7.2 Using the Enhanced for Loop with Array Lists
InterActivities
More InterActivities
7.7.3 Copying Array Lists
InterActivities
More InterActivities
7.7.4 Wrappers and Auto-boxing
InterActivities
More InterActivities
7.7.5 Using Array Algorithms with Array Lists
InterActivities
More InterActivities
7.7.6 Storing Input Values in an Array List
More InterActivities
7.7.7 Removing Matches
More InterActivities
7.7.8 Choosing Between Array Lists and Arrays
Common Error 7.4
Length and Size
Special Topic 7.5
The Diamond Syntax
7.8 Regression Testing (Testing Track)
Programming Tip 7.3
Batch Files and Shell Scripts
Computing & Society 7.2 The Therac-25 Incidents
Chapter Summary
Review Exercises
Practice Exercises
Programming Projects
People also search:
big java early objects 6th edition
big java early objects vs late objects
big java early objects answers
|