public class MainClass{ static void go(int x, int y) { System.out.println("int,int");} static void go(byte... x) { System.out.println("byte... "); } public static void main(String[] args) { byte b = 5; go(b,b); // which go() will be invoked? } } Overloading with Boxing and Var-args: Widening beats boxing Overloading with Boxing and Var-args: Widening beats var-args
int,int