public class returnIt ( returnType methodA(byte x, double y) ( return (short) x/y * 2; ) ) What is the valid returnType for methodA in line 2?()
- A、 Int
- B、 Byte
- C、 Long
- D、 Short
- E、 Float
- F、 Double
正确答案:F
答案解析:有
微信扫一扫手机做题
public class returnIt ( returnType methodA(byte x, double y) ( return (short) x/y * 2; ) ) What is the valid returnType for methodA in line 2?()
微信扫一扫手机做题