Posted 20 March 2006 - 09:24 AM
public static void main(String string)
public - This access modifier makes this method accessible everywhere.
static - It will make this main method invokable without creating an instance of this class.
void - void declares that the method does not return any value.
main - it is a thread which the JVM looks first and is the entry point for the program
Sting- that is java will accept every thing as a string array.
string - This defines a parameter to the main method and will accept command line options passed by the user while invoking the progam.
An simple example:
public static void [b]main(String s)