Java认证
SCJP认证历年经典考题(5)
日期:2013-10-22 11:43
QuestionNo21
Given:
8.intindex=1;
9.intfoo=newint;
10.intbar=foo[index];
11.intbaz=bar+index;
Whatistheresult?
A.Bazhasthevalueof0
B.Bazhasthevalueof1
C.Bazhasthevalueof2
D.Anexceptionisthrown.
E.Thecodewillnotcompile.
Answer:B

QuestionNo22
Given:
1.publicclassfoo{
2.publicstaticvoidmain(Stringargs){
3.Strings;
4.system.out.printIn(s=+s);
5.}
6.}
Whatistheresult?
A.Thecodecompilesands=isprinted.
B.Thecodecompilesands=nullisprinted.
C.Thecodedoes

1/3 下一页 上一页 首页 尾页

Java认证


返回 刷新 WAP首页 网页版 登录
05/13 00:46