niusouti.com
更多“现有:publicclassTestDemo{privateintX-2;staticinty=3;publicvoidmethod(){finalinti=100;intj=10;classCinner{publicvoidmymethod(){//Here}}}}在Here处可以访问的变量是哪些?() ”相关问题
  • 第1题:

    设有如下代码:

    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;


    正确答案:AC

  • 第2题:

    It is very convenient()here.

    Aliving

    Blive 

    Clived

    Dto live


    A

  • 第3题:

    11、下列不能用来作为变量名的是?

    A.You.name

    B.Apple

    C.WONDER

    D.Come_here


    You.name

  • 第4题:

    Look! Here()the famous player

    Acomes

    Bcome 

    Chad come  

    Dcoming


    A

  • 第5题:

    下列不能用来作为变量名的是?

    A.You.name

    B.Apple

    C.WONDER

    D.Come_here


    func