|
|
On the Internet, Java programs
are called applets. Applets are Java
applications that are embedded inside HTML files
and can be downloaded into a Java-capable
browser with the click of a mouse. Applets are
different from regular Java applications. A Java
application simply has a single main()
method that indicates to the Java runtime system
that it is an application. A Java applet is an
application that includes several additional
methods that the runtime system uses that tell
it how to handle the applet, such as what to do
when a user clicks an applet icon and how it
looks on a page.
Before your browser's runtime
Java interpreter downloads and executes the
applet's code, the Java interpreter verifies the
code's integrity. Java is more than a tool to
help you write applets, however. It is a
powerful programming environment.
|
|