Hi, public static void main(String args) It is a main method, which is a starting point of our program. public is a access specifier, which specifies that main method is accessible from any class. static specifies that we are not required to create instance of a class to invoke the main method. void is a return type, which indicates that main method does not return any value and it takes array of String as a parameter. Hope this helps
The entry point of every Java application is its main method. When you run an application with the Java interpreter, you specify the name of the class that you want to run. The interpreter invokes the main method defined within that class. The main method controls the flow of the program, allocates whatever resources are needed, and runs any other methods that provide the functionality for the application. The main Method tells you more.
Joined: Aug 18, 2003
Thanks Guys really a great help. really appreciated !!