Java Concepts: Compatible with Java 5, 6 and 7This book introduces programmers to objects at a gradual pace. The syntax boxes are revised to show typical code examples rather than abstract notation. This includes optional example modules using Alice and Greenfoot. The examples feature annotations with dos and don'ts along with cross references to more detailed explanations in the text. New tables show a large number of typical and cautionary examples. New programming and review problems are also presented that ensure a broad coverage of topics. In addition, Java 7 features are included to provide programmers with the most up-to-date information. |
Contents
20 | 1 |
USING OBJECTS | 31 |
Dont MemorizeUse | 32 |
ALPHABETICAL LIST OF SYNTAX BOXES | 37 |
9T Implementing a Test Program | 50 |
Calling a Superclass Constructor 379 | 57 |
IMPLEMENTING CLASSES | 73 |
Catching Exceptions 424 | 80 |
Declaring an Interface | 332 |
6T Mock Objects | 345 |
INHERITANCE | 367 |
Abstract Classes | 368 |
Importing a Class from a Package 49 | 372 |
Available online in WileyPLUS and at www wiley comcollegehorstmann | 385 |
8G Using Inheritance to Customize Frames | 397 |
INPUTOUTPUT AND EXCEPTION HANDLING | 407 |
6T Unit Testing | 90 |
9G Shape Classes | 96 |
FUNDAMENTAL DATA TYPES | 115 |
Comparisons 158 | 119 |
DECISIONS | 151 |
Declaring a Generic Class | 152 |
5T Code Coverage | 178 |
ITERATION | 193 |
6T Using a Debugger | 223 |
ARRAYS AND ARRAY LISTS | 241 |
7T Regression Testing | 271 |
DESIGNING CLASSES | 289 |
10T Unit Test Frameworks | 316 |
INTERFACES AND POLYMORPHISM | 329 |
Dont Use a Container | 330 |
The throws Clause 423 | 408 |
OBJECTORIENTED DESIGN | 441 |
Object | 447 |
RECURSION | 491 |
Recursion | 493 |
SORTING AND SEARCHING | 525 |
Sorting | 528 |
Searching | 549 |
20 | 555 |
An Introduc | 566 |
Advanced | 577 |
20 | 589 |
Generic | 633 |
Laying Out a User | 640 |
Common terms and phrases
algorithm args array list Available online balance bank BankAccount class BlueJ boolean button Cash Register Chapter CHECK CheckingAccount Coin Common Error compiler construct constructor contains DataSet class debugger declared deposit digit draw element example executed Figure floating-point numbers frame Implement a class implicit parameter initial inner class input instance variables integer iterator Java virtual machine javadoc JUnit linked list loop merge sort method call mutator methods null off-by-one errors online in WileyPLUS operator package param postcondition private int pseudocode public class public double public interface public static void public void Quality Tip Random Fact Rectangle recursive reserved word return value Savings Account Scanner selection sort sequence simply sort algorithm Special Topic statement static method static variable static void main(String Step string subclass superclass Syntax System.out.println("Expected toString width withdraw method Write a program www.wiley.com/college/horstmann