Hi Shyam,
I think you need to see the var-arg which is allowed since
Java 5.0;
1- void method1(
String... args) {}
2- void method1(int x,String... arg) {}
Both are legal and compile fine.
In Krishnan's question, the compiler error comes because the constructor is private as already pointed by Ravi.
Thanks,
[ May 06, 2007: Message edited by: Chandra Bhatt ]