Programming and Problem Solving with Java

(やまだぃちぅ) #1

14


CHAPTER


we have written all of our programs as Java applica-
tions. That is, we have written a class that contains a method called main
that acts as the driver for whatever set of responsibilities our objects
support. Java provides a second type of program called an applet. As its
name implies, it is intended to be a small application that doesn’t stand
on its own but rather is run in a Web browser.
From an educational viewpoint, we have presented only applications
to this point because they enable us to use all of Java’s features. They
also do not require the use of a browser or a separate program (called an
applet viewer) to run compiled code. Now that you are comfortable with
Java, we end this book with a chapter on applets. We describe what they
are, how to write them, and how to run them.


So far in this text,

2000
The dot-com
business model
proves faulty, start-
up companies fail,
tech stock
plummets, and the
dot-com bubble
bursts

2000
Judge rules that
Microsoft is a
monopoly and is in
violation of anti-
trust laws.
Microsoft appeals.

2000
The Human
Genome Project
completes a draft of
the DNA sequence
for humans

2001
Dell Computer
Corporation
becomes the leading
global maker of
computer systems,
targeting both PC
owners and
businesses

2002
Hitachi’s super-
computer, Earth
Simulator, at 40
trillion operations
per second, performs
5-times faster than
the former leading
supercomputer,
IBM’s ASCI White

2002
Microsoft releases
the .NET
development
environment
partially in
response to the
success of Java
Free download pdf