Posted by : Unknown
Wednesday, 10 June 2015
The following line is called main function or main method:
public static void main(String args[])
these following lines are also working.
---------------------------------------------------------------------------------------------
public static void main(String args[])
static public void main(String args[])
Note: You can change the position of public and static its also working
---------------------------------------------------------------------------------------------
public static void main(String args[])
public static main void(String args[])
Note: You can change the position of void and main its also working
---------------------------------------------------------------------------------------------
public static void main(String args[])
public static void main(String[] args)
Note: You can change the position of square box "[]" its also working
---------------------------------------------------------------------------------------------
public static void main(String args[])
public static void main(String vijay[])
Note: You can also change the name of "args" to any name its also working
---------------------------------------------------------------------------------------------
public static void main(String args[])
public static void main(String... df)
Note: You can also change the name of "String args[]" to "String... df" its also working