December 30, 2008 at 10:42 PM
The main method is similar to the main function in C and C++; it's the entry point for your application and will subsequently invoke all the other methods required by your program.
The main method accepts a single argument: an array of elements of type String.
public static void main(String args)
January 2, 2009 at 12:12 PM
we use public because we can use that method(main) not only in the current directory.
That is please refer "Pakages" concept.