class A{
int doX(Long x,Long y){
return 1;
}
int doX(long...x){
return 2;
}
int doX(Integer x,Integer y){
return 3;
}
int doX(Number n,Number m){
return 4;
}
public static void main(
String ar[]){
new A().go();
}
void go(){
short s = 7;
System.out.println(doX(s,s)+"");
System.out.println(doX(7,7));
}
}
short-->long-->Long //widing & boxing
short-->long...x //widing & boxing
short-->Short-->Integer//boxing & widing this is wrong
short-->Short-->Number //boxing & widing
int-->long--Long //widing & boxing
int-->long...x //widing & boxing
int-->Integer //boxing & widing //this is also correct
int-->Integer-->Number //boxing & widing // this is also correct
so how come the answer is 4,3