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

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

A.x

B.y

C.i

D.j


参考答案

更多 “ publicclassTestDemo{privateintx=2;staticinty=3;publicvoidmethod(){finalinti=100;intj=10;classCinner{publicvoidmymethod(){//Here}}}}在Here处可以访问的变量是哪些?() A.xB.yC.iD.j ” 相关考题
考题 现有:publicclassTestDemo{privateintX-2;staticinty=3;publicvoidmethod(){finalinti=100;intj=10;classCinner{publicvoidmymethod(){//Here}}}}在Here处可以访问的变量是哪些?() A.XB.yC.jD.i

考题 设有类定义如下: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);

考题 设有如下代码:interface IFace{}class CFace implements IFace{}class Base{}public class ObRef extends Base{public static void main(String argv[]){ObRef bj = new ObRef();Base b = new Base();Object obj1 = new Object();IFace obj2 = new CFace();//Here}}则在 //Here处插入哪个代码将不出现编译和运行错误。A.obj1=obj2;B.b=obj;C.obj=b;D.obj1=b;

考题 设有类定义如下: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);

考题 Look! Here()the famous playerAcomesBcomeChad comeDcoming

考题 7、If A = (10011000)2, B = (00010000)2 and C = A ⊕ B, which of the following bit patterns is the result of rotating left 3 bits on C? (Here ⊕ represents logical operation XOR)A.01000001B.01000100C.01000000D.00010001

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

考题 若有如下接口A的定义,下列哪些类下确实现了该接口() interface A { void method1(int i); void method2(int j); }A.class B implements A{ void method1() { } void method2() { } }B.class B { void method1(int i ) { } void method2(int j ) { } }C.class B implements A { void method1(int i ) { } void method2(int j ) { } }D.class B implements A{ public void method1(int x ) { } public void method2(int y ) { } }

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