Thursday, November 29, 2007


Explanation : public static void main(String args[])

What is the work of public static void main(String args[]) method in Java. Here is the explanation :
  • public : The public method can be accessed outside the class
  • static : We must have an instance to access the class method.
  • void : There is no need by application to return value. JVM launcher do this with it exists.
  • main() : It is the entry point for the java application.
  • String args[] : It holds optional arguments passed to the class.


0 comments: