Java Reference
In-Depth Information
h)
languages are most convenient to the programmer for writing programs
quickly and easily.
i)
The only language a computer can directly understand is that computer's
.
j)
is a logical unit of the computer that coordinates the activities of all the other
logical units.
1.5
Fill in the blanks in each of the following statements:
a)
The programming language is now used to develop large-scale enterprise ap-
plications, to enhance the functionality of web servers, to provide applications for con-
sumer devices and for many other purposes.
b)
initially became widely known as the development language of the UNIX op-
erating system.
c)
The ensures that messages, consisting of sequentially numbered pieces called
bytes, were properly routed from sender to receiver, arrived intact and were assembled
in the correct order.
d)
The programming language was developed by Bjarne Stroustrup in the early
1980s at Bell Laboratories.
1.6
Fill in the blanks in each of the following statements:
a)
Java programs normally go through five phases—
,
,
,
and .
b) 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.
c) The command java invokes the , which executes Java programs.
d) A(n) is a software application that simulates a computer, but hides the under-
lying operating system and hardware from the programs that interact with it.
e) The takes the .class files containing the program's bytecodes and transfers
them to primary memory.
f) The examines bytecodes to ensure that they're valid.
1.7 Explain the two compilation phases of Java programs.
1.8 One of the world's most common objects is a wrist watch. Discuss how each of the follow-
ing terms and concepts applies to the notion of a watch: object, attributes, behaviors, class, inheri-
tance (consider, for example, an alarm clock), modeling, messages, encapsulation, interface and
information hiding.
Making a Difference
Throughout the topic we've included Making a Difference exercises in which you'll be asked to
work on problems that really matter to individuals, communities, countries and the world. For
more information about worldwide organizations working to make a difference, and for related
programming project ideas, visit our Making a Difference Resource Center at www.deitel.com/
makingadifference .
1.9 (Test-Drive: Carbon Footprint Calculator) Some scientists believe that carbon emissions,
especially from the burning of fossil fuels, contribute significantly to global warming and that this
can be combatted if individuals take steps to limit their use of carbon-based fuels. Organizations and
individuals are increasingly concerned about their “carbon footprints.” Websites such as TerraPass
http://www.terrapass.com/carbon-footprint-calculator/
and Carbon Footprint
http://www.carbonfootprint.com/calculator.aspx
 
Search WWH ::




Custom Search