publicclassreturnIt(2.returnTypemethodA(bytex,doubley)(3.return(short)x/y*2;4.)5.)WhatisthevalidreturnTypeformethodAinline2?() A.IntB.ByteC.LongD.ShortE.FloatF.Double
publicclassreturnIt(2.returnTypemethodA(bytex,doubley)(3.return(short)x/y*2;4.)5.)WhatisthevalidreturnTypeformethodAinline2?()
A.Int
B.Byte
C.Long
D.Short
E.Float
F.Double
相关考题:
publicclassReturnIt{2.returnTypemethodA(bytex,doubley){3.return(short)x/y*2;4.}5.}WhatisthenarrowestvalidreturnTypeformethodAinline2?() A.intB.byteC.longD.shortE.floatF.double
publicclassReturnIt{2.returnTypemethodA(bytex,doubley){3.return(long)x/y*2;4.}5.}WhatisthenarrowestvalidreturnTypeformethodAinline2?() A.intB.byteC.longD.shortE.floatF.double
publicclassreturnIt(returnTypemethodA(bytex,doubley)(return(short)x/y*2;))WhatisthevalidreturnTypeformethodAinline2?() A.IntB.ByteC.LongD.ShortE.FloatF.Double
有以下方法的定义,则该方法的返回类型为()。 ReturnType method(byte x, double y) { return (short) x/y*2; }A.shortB.byteC.doubleD.int
2、有以下方法的定义,请选择该方法的返回类型()。 ReturnType method(byte x, double y) { return (short)x/y*2; }A.byteB.shortC.intD.double
有以下方法的定义,该方法的返回类型ReturnType应为()。 ReturnType cal(byte x, double y){ return (short)x/y*2; }A.byteB.shortC.intD.double
9、MyClass定义了methodA方法,请填上返回值类型。 public class MyClass{ methodA(byte x,double y){ return (short)x/y*2; } }
2、有以下方法的定义,则该方法的返回类型为()。 ReturnType method(byte x, double y) { return (short) x/y*2; }A.shortB.byteC.doubleD.int