![]() |
Java program > application |
![]() ![]() | ||||
application (Java application) | ||||
subject | fact |
application | consists of one or more classes ![]() | ![]() |
contains one class that contains a main method which serves as the starting point for the rest of the program ![]() | ![]() | |
has definition A Java program that does not run in a Web browser ![]() | ![]() | |
has example of running java HelloWorld ![]() | ![]() | |
has part 1 main method called its entry point | ![]() | |
is similar to an applet | ![]() | |
is a subtopic of How Java Works | ![]() | |
is run by using a Java interpreter to load the application's main class file - this is normally done from the command-line prompt using the java tool from the SDK | ![]() | |
is a kind of Java program | ![]() | |
may have command line arguments ![]() | ![]() | |
to run you type java and the class file name (without its extension) on the command line ![]() | ![]() | |
is a synonym of Java application | ![]() | |
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 portable because it is compiled into bytecode that can run on any computer with a Java Virtual Machine ![]() | ![]() | |
is usually slower than native code | ![]() | |
is executed by a Java Virtual Machine | ![]() | |
must be readable by humans | ![]() | |
runs on a Java platform | ![]() | |
should follow consistent guidelines that make the program easy to read | ![]() | |
to run you may need platform-specific instructions | ![]() |
Kinds of application :
Next Java program: Java interpreter Up: Java program Previous Java program: applet viewer