I have gone through a note on var-args in java. I wondered what is the difference it make with the array parameter while calling a method.
public void doSomething(int[] a){
// some logic here
}
public void doSometing(int... a){
// some logic here
}
the above two methods were called by
int[] x={1,2,3,4,5};
doSomething(x);
is both of them are same or some difference exists?
and is it possible to overload these two methods?