Answers to Self Review Exercises


a) Apple. b) IBM Personal Computer. c) programs. d) input unit, output unit, memory unit, arithmetic and logic unit, central processing unit, secondary storage unit. e) machine languages, assembly languages, high-level languages. f) compilers. g) World Wide Web. h) Multithreading.


a) java. b) javac. c) .java. d) .class. e) bytecodes.


a) information hiding. b) classes. c) associations. d) object-oriented analysis and design (OOAD). e) inheritance. f) The Unified Modeling Language (UML). g) attributes.


Categorize each of the following items as either hardware or software:

  1. CPU
  2. Java compiler
  3. JVM
  4. input unit
  5. editor

Fill in the blanks in each of the following statements:

  1. The logical unit of the computer that receives information from outside the computer for use by the computer is the __________.
  2. The process of instructing the computer to solve a problems is called __________.
  3. __________ is a type of computer language that uses English-like abbreviations for machine-language instructions.
  4. __________ is a logical unit of the computer that sends information which has already been processed by the computer to various devices so that it may be used outside the computer.
  5. __________ and __________ are logical units of the computer that retain information.
  6. __________ is a logical unit of the computer that performs calculations.
  7. __________ is a logical unit of the computer that makes logical decisions.
  8. __________ languages are most convenient to the programmer for writing programs quickly and easily.
  9. The only language that a computer can directly understand is that computer's __________.
  10. __________ is a logical unit of the computer that coordinates the activities of all the other logical units.

What is the difference between fatal errors and nonfatal errors? Why might you prefer to experience a fatal error rather than a nonfatal error?


Fill in the blanks in each of the following statements:

  1. __________ is now used to develop large-scale enterprise applications, to enhance the functionality of Web servers, to provide applications for consumer devices and for many other purposes.
  2. __________ was designed specifically for the .NET platform to enable programmers to migrate easily to .NET.
  3. __________ initially became widely known as the development language of the UNIX operating system.
  4. __________ was developed at Dartmouth College in the mid-1960s as a means of writing simple programs.
  5. __________ was developed by IBM Corporation in the mid-1950s to be used for scientific and engineering applications that require complex mathematical computations.
  6. __________ is used for commercial applications that require precise and efficient manipulation of large amounts of data.
  7. __________ was developed by Bjarne Stroustrup in the early 1980s at Bell Laboratories (now part of Lucent).

Fill in the blanks in each of the following statements (based on Section 1.13):

  1. Java programs normally go through five phases__________, __________, __________, __________and __________.
  2. A(n) __________ provides many tools that support the software development process, such as editors for writing and editing programs, debuggers for locating logic errors in programs and many other features.
  3. The command java invokes the __________, which executes Java programs.
  4. A(n) __________ is a software application that simulates a computer, but hides the underlying operating system and hardware from the programs that interact with the VM.
  5. A(n) __________ program can run on multiple platforms.
  6. The __________ takes the .class files containing the program's bytecodes and transfers them to primary memory.
  7. The __________ examines bytecodes to ensure that they are valid.

Explain the two compilation phases of Java programs.

Introduction to Computers, the Internet and the World Wide Web

Introduction to Java Applications

Introduction to Classes and Objects

Control Statements: Part I

Control Statements: Part 2

Methods: A Deeper Look


Classes and Objects: A Deeper Look

Object-Oriented Programming: Inheritance

Object-Oriented Programming: Polymorphism

GUI Components: Part 1

Graphics and Java 2D™

Exception Handling

Files and Streams


Searching and Sorting

Data Structures



Introduction to Java Applets

Multimedia: Applets and Applications

GUI Components: Part 2



Accessing Databases with JDBC


JavaServer Pages (JSP)

Formatted Output

Strings, Characters and Regular Expressions

Appendix A. Operator Precedence Chart

Appendix B. ASCII Character Set

Appendix C. Keywords and Reserved Words

Appendix D. Primitive Types

Appendix E. (On CD) Number Systems

Appendix F. (On CD) Unicode®

Appendix G. Using the Java API Documentation

Appendix H. (On CD) Creating Documentation with javadoc

Appendix I. (On CD) Bit Manipulation

Appendix J. (On CD) ATM Case Study Code

Appendix K. (On CD) Labeled break and continue Statements

Appendix L. (On CD) UML 2: Additional Diagram Types

Appendix M. (On CD) Design Patterns

Appendix N. Using the Debugger

Inside Back Cover

Java(c) How to Program
Java How to Program (6th Edition) (How to Program (Deitel))
ISBN: 0131483986
EAN: 2147483647
Year: 2003
Pages: 615

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net