- 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.
Thursday, November 29, 2007
Explanation : public static void main(String args[])
Tuesday, November 27, 2007
First Program in Java
class HelloWorld {
public static void main(String[] args){
System.out.println("My First Program:Hello World!");
}
Subscribe to:
Posts (Atom)