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.


Tuesday, November 27, 2007


First Program in Java

Before writing java code, please be careful when you write the java code because it is case sensitive language. I will explain later about "String[] args".

class HelloWorld {

public static void main(String[] args){

System.out.println("My First Program:Hello World!");


}