面向对象复习1

面向对象基本概念
1.
方法的参数类型说法正确的是(ACD )
 
2.
以下说法正确的是(AB )
 
3.
下列关于局部变量和成员变量区别描述正确的有哪些(ABCD) 
 

4.

以下代码的执行结果是:(D)

class Demo {

  int x;

  String s;

  float f;

  boolean[] b = new boolean[5];

  public static void run(){

    System.out.println(x);

    System.out.println(s);

    System.out.println(f);

    System.out.println(b[2]);

  }

  public static void main(String args[]){

            run();

  }

}

 
 
 
posted @ 2017-03-11 18:50  leevanes  阅读(443)  评论(0编辑  收藏  举报