Why is the below code giving compilation error "The method show(Object[]) is ambiguous for the type VarArgs"?.
Error in line show(10,20,30);
public class VarArgs {
public static void main(String[] args) {
show(10,20,30);
}
private static void show(Object... args){
System.out.println("Object");
}
private static void show(int... arry){
System.out.println("Integer");
}
}
JDK : jdk1.6.0_23