Application
A stand-alone java program that does not need any browser to run it. However, a Java interpereter is needed to run a Java application.
UNIX:
java application1
DOS shell(Windows 95/NT):
java application1
MacOS:
Just Drag the application1 file icon onto the Java Interpreter icon.
The following code shows the listing of a stand-alone Java application.
|
class application1{
public static void main(String[] args){
System.out.println("Abdul H. Aziz");
}
}
|
Observations
- The entry point of every a JAVA application is the main method.
The declaration of the main method has three modifiers:
Argument to the main method is an array of elements of type String
- The skeleton of any Java program is a class definition.
- Methods exists within class or an object. In Java a class definition is achieved via:
|
class name {
... put vairables and methods here ...
}
|
Please send questions or suggestions about this web page to beatnic@aset.psu.edu
ASET | ITS | Penn State
|