Why is this declaration not considered ambiguous in compile time?
void f(int a) {
System.out.println("int");
}
void f(int... a) {
System.out.println("int...");
}
e.g.:
f(2); // to one parameter both method should match (f(int) runs)
f(2,2); // f(int...)