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

int index = 1;  b


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

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

1、int index = 1;  S

int index = 1; String [] test = new String[3]; String foo = test[index];    W...

2、int index = 1;  i

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

3、有以下程序段 main() { int a=5,*b,**c; c=&

有以下程序段 main() { int a=5,*b,**c; c=&b;&a; } 程序在执行了“C=&b;b=&a;”语句后,表达式“**c”的值是A变量a的地址B变量b中的值C变量a中的值D变量b的地址

4、现有int a,*b;,b=&a;,则下列运算错误的是

现有int a,*b;,b=&a;,则下列运算错误的是A*&aB&*aC*&bD&*b

5、若在定义语句:int a,b,C,*p=&c;之后,接着执行以下选项

若在定义语句:int a,b,C,*p=&c;之后,接着执行以下选项中的语句,则能正确执行的语句是( )。AA)scanf("%dft,a,b,c);BB)scanf("%d%d%d",a,b,c);CC)scanf("%d”,p);DD)scanf("%d",&p);

6、有如下程序段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编译出错