jaspreet manchinda wrote:Hello Everyone,
can anyone please tell me what is difference between
1.public static void main ();
2.public static void main(String args []);
3.public static void main (String... args);
i know its kind of noob question but i am little confused with it
1. Is a normal method which is being used in the program and is not the point of entry of execution of the program, having this method. Its just a static method.
2. This is the method which is the point of entry for execution of a program. Execution will start from here.
3. String args[] holds the same meaning as String ... args, where the later is called var-ags which takes or holds multiple values of type String. All that is said in '2', applies here too.