有以下方法的定义,请选择该方法的返回类型()。ReturnType method(bytex,doubley){return(short)x/y*2;}A、byteB、shortC、intD、double

有以下方法的定义,请选择该方法的返回类型()。ReturnType method(bytex,doubley){return(short)x/y*2;}

  • A、byte
  • B、short
  • C、int
  • D、double

相关考题:

在Java 为中,不属于整数类型变量的是( )。A.byteB.shortC.intD.float

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(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

下列属于Java中整型类型的是()。 A.byteB.shortC.intD.long

在下列方法的定义中,正确的是 ( )A.public double x(){..;return false;}B.public static int x(double y){...}C.void x(doubled){...;return d}D.public static x(double a){..}

有以下函数定义: int mypr(double a,double b) { return a*b; } 若以下选项中所用变量都已正确定义并赋值,错误的函数调用是A.if(mypr(x,y)){……}B.z=mypr(mypr(x,y),mypr(x,y));C.z=mypr(mypr(x,y)x,y);D.mypr(x,y);

methodA(byte x,double y){return (short)x/y*2;}下划线上应填写的关键字是( )。A、byteB、doubleC、shortD、float

已知一个函数的定义如下:double fun(int x,double y){⋯⋯}则该函数正确的函数原型声明为()A、double fun(intx,doubley)B、fun(int x,doubley)C、double fun(int,double);D、fun(x,y);

1. public class ReturnIt {  2. return Type methodA(byte x, double y) {  3. return (long)x / y * 2;  4. }  5. }  What is the narrowest valid returnType for methodA in line2?()  A、 intB、 byteC、 longD、 shortE、 floatF、 double

有以下方法的定义,请选择该方法的返回类型()。 ReturnType  method(byte x, double y){ return  (short)x/y*2;}A、byteB、shortC、intD、double

______methodA(bytex,doubley){?return(short)x/y*2;?}下划线上应填写的关键字是()A、byteB、doubleC、shortD、float

如果定义有double,x;float,y;int,m,则表达式x*y-m的类型为()A、doubleB、floatC、intD、short

有以下方法的定义,ReturnTypemethod(bytex,floaty){return(short)x/y*2;}请选择该方法的返回类型()。A、byteB、shortC、intD、float

Java的整型数据类型中,需要内存空间最少的是()。A、byteB、shortC、intD、long

1. public class returnIt (  2. returnType methodA(byte x, double y) (  3. return (short) x/y * 2;  4. )  5. )   What is the valid returnType for methodA in line 2?()  A、 IntB、 ByteC、 LongD、 ShortE、 FloatF、 Double

1. public class ReturnIt {  2. return Type methodA(byte x, double y) {  3. return (short)x / y * 2;  4. }  5. }  What is the narrowest valid returnType for methodA in line2?()  A、 intB、 byteC、 longD、 shortE、 floatF、 double

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、 IntB、 ByteC、 LongD、 ShortE、 FloatF、 Double

如果定义有short,s;byte,b;char,c,则表达式s*b+c的类型为()A、charB、shortC、intD、byte

单选题______methodA(bytex,doubley){?return(short)x/y*2;?}下划线上应填写的关键字是()AbyteBdoubleCshortDfloat

单选题1. public class returnIt (  2. returnType methodA(byte x, double y) (  3. return (short) x/y * 2;  4. )  5. )   What is the valid returnType for methodA in line 2?()A IntB ByteC LongD ShortE FloatF Double

单选题有以下方法的定义,请选择该方法的返回类型()。 ReturnType  method(byte x, double y){ return  (short)x/y*2;}AbyteBshortCintDdouble

单选题有以下方法的定义,ReturnTypemethod(bytex,floaty){return(short)x/y*2;}请选择该方法的返回类型()。AbyteBshortCintDfloat

单选题1. public class ReturnIt {  2. return Type methodA(byte x, double y) {  3. return (short)x / y * 2;  4. }  5. }  What is the narrowest valid returnType for methodA in line2?()A intB byteC longD shortE floatF double

单选题1. public class ReturnIt {  2. return Type methodA(byte x, double y) {  3. return (long)x / y * 2;  4. }  5. }  What is the narrowest valid returnType for methodA in line2?()A intB byteC longD shortE floatF double

单选题有以下方法的定义,请选择该方法的返回类型()。ReturnType method(bytex,doubley){return(short)x/y*2;}AbyteBshortCintDdouble

单选题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 IntB ByteC LongD ShortE FloatF Double