
32 CHAPTER 1 Introduction to Programming and the Java Language
TABLE 1.7 Types of Program Errors and Their Causes
Type of Error Usual Causes
Compiler errors Incorrect language syntax or misspellings
Run-time errors Incorrect use of classes
Logic errors Incorrect program design or incorrect implementation of the design
DISCUSSION QUESTIONS
1. In the Debugging Techniques section,we saw that making one typo could generate
several compiler errors.Why do you think that happens?
2. Explain whytesting boundary conditions is an efficient waytoverifya program’s cor-
rectness.
3. Did any errors occur while you were developing the first application? If so,explain ...