You are here:   HomeJava ProgrammingIntroduction to JavaTypes of Java Program
by Dinesh Thakur Category: Introduction to Java

Java program has two types. They are:


1. Application Program (Stand-alone application)

2. Applets Program.


1. Stand-alone applications are those java programs that can be developed and executed on a stand-alone local computer.(which we can execute from the command prompt). The stand-alone application can be executed without the browsers (Internet connectivity).A java program is not embedded within HTML or any other language and can Stand on its own. It is referred to as Application program.

2. Applet Programs are small java programs developed for internet applications. Applets are embedded in HTML documents. Applet programs can be run using the applet viewer or web browser. For example, when you use java to enhance a WWW page, the java code is embedded within HTML code. It is called as Applet.