为什么这段代码会打印int?
public static void main(String[] args) {
short s = 5;
A(s);
}
public static void A(int a){
System.out.println("int");
}
public static void A(Short a){
System.out.println("short");
}
Run Code Online (Sandbox Code Playgroud) java ×1