![](../../../javaimages/course-previous.gif)
Java Applet vs. Java Application
- Applet
- A Java program that runs inside a Java-enabled Web Browser
- Application
- A stand-alone Java program run via the "java" command, e.g., the BankAccount sample
Detailed Description:
"Let's talk about Java applets versus Java applications. A Java applet is
a Java program that's written to run within a web page. Let's call it a
Java-powered page executed by a Java-enabled web browser. A Java
application is just a general purpose Java program written to run within the
Java virtual machine, but is not to be run within a web browser. If you
develop a Java application, it has and generally should be allowed more
liberties to be able to be executed on your machine. Java applications are
run as local programs on your machine and are considered trusted, whereas
Java applets are downloaded across the Internet and must be checked to
ensure that they are properly formed. Java applets have a number of
requirements that they must follow. Let's look into each of these
requirements and understand what an applet is in more detail."
![](../../../javaimages/course-previous.gif)
|