Good Links

var-arg Methods in Java

From 1.5 version on words we are allowed to declare a method with variable no of arguments such type of methods are called var-arg methods. We can declare a var-arg methoda as follows m1(int… i); this methods is applicable for any no of int arguments including zero no of arguments.Example:classTest {public static voidm1(int... i) { System.out.println("var-arg methods"); }public static void main(String arg[]) { m1(); // var-arg methods m1(10); // var-arg methods m1(10, 20); // var-arg methods m1(10, 20, 30); // var-arg methods }}