Java View all facts Glossary Help |
Java program > applet |
applet (Java applet) | ||||
subject | fact |
applet | adheres to a set of conventions that lets it run within a Java-compatible browser | |
can be embedded in an HTML page | ||
can be loaded from a remote or local location | ||
can be viewed by a Java-compatible Web browser | ||
can be written using Java 2 but the person viewing the applet must be using a browser that supports it or they must download the Java Plug-in | ||
can have a main method if it is to be run standalone (usually for the purpose of testing) | ||
can have parameters which are passed from the HTML file to the applet when the applet is loaded | ||
cannot change the executing machine's environment | ||
cannot read arguments from the command line | ||
has definition A program that adheres to certain conventions that allow it to run within a Java-enabled browser | ||
does not have part
| ||
does not need a main method if it is used solely in a browser | ||
has example import java.awt.Graphics; | ||
is an instance of Applet class, JApplet class or one of their subclasses | ||
is a subtopic of Applets | ||
is started by an init method | ||
is usually written using Java 1.0 or Java 1.1 because most web browsers do not support later versions of Java | ||
is a kind of Java program | ||
must implement one of | ||
must implement a destroy method which is executed when the applet is no longer needed | ||
must implement a stop method which may be executed anytime, usually when the applet is not immediately visible | ||
normally does not run standalone | ||
runs in
| ||
is a synonym of Java applet | ||
Java program | can be compiled on any platform that has a Java compiler | |
can be run on any implementation of the Java Virtual Machine specification | ||
is usually slower than native code | ||
is executed by a Java Virtual Machine | ||
runs on a Java platform | ||
should follow consistent guidelines that make the program easy to read | ||
to run you type java and the class file name on the command line | ||
to run you may need platform-specific instructions |
Next Java program: applet viewer Up: Java program Previous Java program: standalone program