网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
字符变量定义的关键字是()
- A、int
- B、float
- C、char
- D、long
参考答案
更多 “字符变量定义的关键字是()A、intB、floatC、charD、long” 相关考题
考题
Given:1.publicclassMethodOver{2.publicvoidsetVar(inta,intb,floatc){3.}4.}WhichtwooverloadthesetVarmethod()?
A.privatevoidsetVar(inta,floatc,intb){}B.protectedvoidsetVar(inta,intb,floatc){}C.publicintsetVar(inta,floatc,intb){returna:}D.publicintsetVar(inta,intb,floatc){returna:}E.protectedfloatsetVar(inta,intb,floatc){returnc:}
考题
publicclassMethodOver{privateintx,y;privatefloatz;publicvoidsetVar(inta,intb,floatc){x=a;y=b;z=c;}}WhichtwooverloadthesetVarmethod?()
A.voidsetVar(inta,intb,floatc){x=a;y=b;z=c;}B.publicvoidsetVar(inta,floatc,intb){setVar(a,b,c);}C.publicvoidsetVar(inta,floatc,intb){this(a,b,c);}D.publicvoidsetVar(inta,floatb){x=a;z=b;}E.publicvoidsetVar(intax,intby,floatcz){x=ax;y=by;z=cz;}
考题
publicclassMethodOver{publicvoidsetVar(inta,intb,floatc){}}WhichtwooverloadthesetVarmethod?()
A.PrivatevoidsetVar(inta,floatc,intb){}B.ProtectedvoidsetVar(inta,intb,floatc){}C.PublicintsetVar(inta,floatc,intb)(returna;)D.PublicintsetVar(inta,intb,floatc)(returna;)E.ProtectedfloatsetVar(inta,intb,floatc)(returnc;)
考题
类Test定义如下,将下列()方法插入③行处是不合法的。①publicclassTest{②publicfloatMethod(floata,floatb){}③④}A.publicfloatMethod(floata,floatb,floatc){}B.pubicfloatMethod(floatc,floatd){}C.publicintMethod(inta,intb){}D.pivatefloatMethod(inta,intb,intc){}
考题
类Test1定义如下:publicclassTest1{publicfloataMethod(floata,floatb){}____}根据方法重载的定义,将以下哪种方法插入下划线部分是不合法的。()A、publicfloataMethod(floata,floatb,floatc){}B、publicfloataMethod(floatc,floatd){}C、publicfloataMethod(inta,intb){}D、publicfloataMethod(inta,intb,intc){}
考题
类Test1定义如下:1.publicclassTest1{2.publicfloataMethod(floata,floatb){}3.4.}将以下()方法插入行3是不合法的。A、public float aMethod(floata,floatb,floatc){}B、public float aMethod(floatc,floatd){}C、public int aMethod(inta,intb){}D、private float aMethod(inta,intb,intc){}
考题
填空题定义局部变量的语句关键字为(),被定义的各变量之间必须用()字符分开。
热门标签
最新试卷