The args argument for main method may use any valid identifier. : main method « Java Source And Data Type « SCJP

Home
SCJP
1.Java Source And Data Type
2.Operators
3.Modifiers
4.Type Casting
5.Statements
6.Object Oriented
7.Thread
8.Utility Classes
9.File
SCJP » Java Source And Data Type » main method 
1.19.6.The args argument for main method may use any valid identifier.
For example, you can use arg, myArgs, or parms. 



public class MainClass{
    public static void main(String[] argv){
       System.out.println();
    }
}
    
public class MainClass{
    public static void main(String[] myArgs){
        System.out.println();
    }
}
    
    
public class MainClass{
    public static void main(String[] parms){
      System.out.println();
    }
}
1.19.main method
1.19.1.The main() method is the entry point for standalone Java applications.
1.19.2.The argument to main() is a single-dimension array of Strings
1.19.3.The main() method's void keyword must appear immediately before main().
1.19.4.The public and static keywords for main method may be interchanged.
1.19.5.This argument for main method may be defined as String[] args or String []args or String args[].
1.19.6.The args argument for main method may use any valid identifier.
1.19.7.How command-line arguments are accessed using the args array.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.