|  Java   View all facts   Glossary   Help | 
| Java program > standalone program | 
|   | ||||
| standalone program | ||||
| subject | fact | |||
| standalone program | is a subtopic of How Java Works |  | 
| is started by the Java virtual machine performing the computations in the main method |  | |
| is a kind of Java program |  | |
| must contain a class that defines a main method |  | |
| 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  |  | |
| has 0 or 1 name |  | |
| 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 type java and the class file name on the command line |  | |
| to run you may need platform-specific instructions |  |