public class Returnlt{
returnType methodA(byte x,doule y){
return (short)x/y*2;
}
}
请问程序中的第二行中returnType 应该指定为哪种类型?
A double B int C short D byte
returnType methodA(byte x,doule y){
return (short)x/y*2;
}
}
请问程序中的第二行中returnType 应该指定为哪种类型?
A double B int C short D byte
它会先计算x/y*2在转型成short