更多“publicclassreturnIt(2.returnTypemethodA(bytex,doubley)(3.return(short)x/y*2;4.)5.)WhatisthevalidreturnTypeformethodAinline2?() ”相关问题
  • 第1题:

    有以下方法的定义,则该方法的返回类型为()。 ReturnType method(byte x, double y) { return (short) x/y*2; }

    A.short

    B.byte

    C.double

    D.int


    D

  • 第2题:

    有以下方法的定义,该方法的返回类型ReturnType应为()。 ReturnType cal(byte x, double y){ return (short)x/y*2; }

    A.byte

    B.short

    C.int

    D.double


    short

  • 第3题:

    2、有以下方法的定义,则该方法的返回类型为()。 ReturnType method(byte x, double y) { return (short) x/y*2; }

    A.short

    B.byte

    C.double

    D.int


    short

  • 第4题:

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

    A.byte

    B.short

    C.int

    D.double


    D

  • 第5题:

    9、MyClass定义了methodA方法,请填上返回值类型。 public class MyClass{ methodA(byte x,double y){ return (short)x/y*2; } }


    double