Java Reference
In-Depth Information
e)
is an operating system for mobile devices based on the Linux kernel and Java.
f)
software is generally feature complete, (supposedly) bug free and ready for use
by the community.
g)
The Wii Remote, as well as many smartphones, use a(n)
which allows the de-
vice to respond to motion.
1.2
Fill in the blanks in each of the following sentences about the Java environment:
a)
The
command from the JDK executes a Java application.
b)
The
command from the JDK compiles a Java program.
c)
A Java source code file must end with the
file extension.
d)
When a Java program is compiled, the file produced by the compiler ends with the
file extension.
e)
The file produced by the Java compiler contains
that are executed by the Java
Virtual Machine.
1.3
Fill in the blanks in each of the following statements (based on Section 1.5):
a)
Objects enable the design practice of —although they may know how to com-
municate with one another across well-defined interfaces, they normally are not allowed
to know how other objects are implemented.
b)
Java programmers concentrate on creating , which contain fields and the set of
methods that manipulate those fields and provide services to clients.
c)
The process of analyzing and designing a system from an object-oriented point of view
is called
.
d)
A new class of objects can be created conveniently by —the new class (called
the subclass) starts with the characteristics of an existing class (called the superclass),
possibly customizing them and adding unique characteristics of its own.
e)
is a graphical language that allows people who design software systems to use
an industry-standard notation to represent them.
f)
The size, shape, color and weight of an object are considered
of the object's class.
Answers to Self-Review Exercises
1.1 a) programs. b) input unit, output unit, memory unit, central processing unit, arithmetic
and logic unit, secondary storage unit. c) machine languages, assembly languages, high-level lan-
guages. d) compilers. e) Android. f) Release candidate. g) accelerometer.
1.2 a) java . b) javac . c) .java . d) .class . e) bytecodes.
1.3 a) information hiding. b) classes. c) object-oriented analysis and design (OOAD).
d) inheritance. e) The Unified Modeling Language (UML). f) attributes.
Exercises
1.4
Fill in the blanks in each of the following statements:
a)
The logical unit that receives information from outside the computer for use by the
computer is the
.
b)
The process of instructing the computer to solve a problem is called
.
c)
is a type of computer language that uses Englishlike abbreviations for ma-
chine-language instructions.
d)
is a logical unit that sends information which has already been processed by
the computer to various devices so that it may be used outside the computer.
e)
and
are logical units of the computer that retain information.
f)
is a logical unit of the computer that performs calculations.
g)
is a logical unit of the computer that makes logical decisions.
 
Search WWH ::




Custom Search