网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
现有:publicclassTestDemo{privateintX-2;staticinty=3;publicvoidmethod(){finalinti=100;intj=10;classCinner{publicvoidmymethod(){//Here}}}}在Here处可以访问的变量是哪些?()

A.X

B.y

C.j

D.i


参考答案

更多 “ 现有:publicclassTestDemo{privateintX-2;staticinty=3;publicvoidmethod(){finalinti=100;intj=10;classCinner{publicvoidmymethod(){//Here}}}}在Here处可以访问的变量是哪些?() A.XB.yC.jD.i ” 相关考题
考题 When did you ____ here? A got toB reachedC arrive inD reach

考题 publicclassTestDemo{privateintx=2;staticinty=3;publicvoidmethod(){finalinti=100;intj=10;classCinner{publicvoidmymethod(){//Here}}}}在Here处可以访问的变量是哪些?() A.xB.yC.iD.j

考题 设有类定义如下:class Base{public Base(int i){}}public class MyOver extends Base{public static void main(String arg[]){MyOver m = new MyOver(10);}MyOver(int i){super(i);}MyOver(String s, int i){this(i);//Here}}以下哪条语句可以安排在//Here处 ?A.MyOver m = new MyOver();B.super();C.this("Hello",10);D.Base b = new Base(10);

考题 设有类定义如下:class InOut{String s= new String("Between");public void amethod(final int iArgs){int iam;class Bicycle{public void sayHello(){//Here}}}public void another(){int iOther;}}以下哪些语句可以安排在//Here处 ?A. System.out.println(s);B.System.out.println(iOther);C. System.out.println(iam);D. System.out.println(iArgs);

考题 设有如下代码:class Base{}public class MyCast extends Base{static boolean b1=false;static int i = -1;static double d = 10.1;public static void main(String argv[]){MyCast m = new MyCast();Base b = new Base();//Here}}则在 //Here处插入哪个代码将不出现编译和运行错误。A.b=m;B.m=b;C.d =i;D.b1 =i;

考题 Look! Here()the famous playerAcomesBcomeChad comeDcoming

考题 It is very convenient()here.AlivingBliveClivedDto live

考题 下列不能用来作为变量名的是?A.You.nameB.AppleC.WONDERD.Come_here

考题 11、下列不能用来作为变量名的是?A.You.nameB.AppleC.WONDERD.Come_here