可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

int index = 1;  S


int index = 1;  String [] test = new String[3];  String foo = test[index];     What is the result?()  

  • A Foo has the value “”
  • B Foo has the value null
  • C An exception is thrown
  • D The code will not compile
参考答案
参考解析:
分类:SCJP程序员认证考试题库
相关推荐

1、int index = 1;  b

int index = 1; boolean[] test = new Boolean[3]; boolean foo= test [index];  What is&ens...

2、int index = 1;  i

int index = 1; int [] foo = new int [3]; int bar = foo [index]; int baz ...

3、有如下程序段int *p,a=10,b=1;p=&a; a=*p+b

有如下程序段int *p,a=10,b=1;p=&a; a=*p+b;执行该程序段后,a的值为A.12 B.10 C.11 D.编译出错A12 B10 C11 D编译出错

4、有如下程序段int *p,a=10,b=1;p=&a; a=*p+b

有如下程序段int *p,a=10,b=1;p=&a; a=*p+b;执行该程序段后,a的值为A12B11C10D编译出错

5、Given:  8.int index =&

Given: 8.int index = 1: 9.Boolean [] test = new boolcan [3]; 10.boolcan foo = test&ensp...

6、int index = 1; &e

int index = 1;  int foo = new int ;  int bar = foo [index];  int ba...