单项选择题
Given:
8.int index = 1:
9.Boolean [] test = new boolcan [3];
10.boolcan 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.
点击查看答案
相关考题
-
单项选择题
What is the decimal value of J at line 5?()
A. 0
B. 1
C. 14
D. –15
E. An error at line 3 cause compilation to fail.
F. An error at line 4 cause compilation to fail. -
单项选择题
What is the final value of i?()
A. 1
B. 2
C. 3
D. 4
E. 5 -
问答题
What is the output?
