next up previous contents
Next: Fit it in Up: The Empty Program Previous: <init>

main

The last item that has to be present in a class file that can be run as an application is the main method. The main method in Java must be declared public, static and void and must have only one parameter of type String[] containing the program arguments.

The main method is also fully described in an entry in the methods[] table of the class file which contains the following information:



mark@bottom.xs4all.nl