1) public class ReturnIt{
2) returnType methodA(byte x, double y){
3) return (short)x/y*2;
4) }
5) }
what is valid returnType for methodA in line 2?
Answer:double
...全文
3336打赏收藏
返回类型为啥是double
1) public class ReturnIt{ 2) returnType methodA(byte x, double y){ 3) return (short)x/y*2; 4) } 5) } what is valid returnType for methodA in line 2? Answer:double