Given:
11.//insertcodehere
12.privateNmin,max;
13.publicNgetMin(){returnmin;}
14.publicNgetMax(){returnmax;}
15.publicvoidadd(Nadded){
16.if(min==null||added.doubleValue()<min.doubleValue())
17.min=added;
18.if(max==null||added.doubleValue()>max.doubleValue())
19.max=added;
20.}
21.}
Whichtwo,insertedatline11,willallowthecodetocompile?()
第1题:
Given:11.<%12.request.setAttribute("vals",newString[]{"1","2","3","4"});13.request.setAttribute("index","2");14.%>15.<%--insertcodehere--%>WhichthreeELexpressions,insertedatline15,arevalidandevaluateto"3"?()
A.${vals.2}
B.${vals["2"]}
C.${vals.index}
D.${vals[index]}
E.${vals}[index]
F.${vals[vals[index-1]]}
第2题:
A、moved
B、removed
C、awarded
D、given
第3题:
第4题:
A. any class
B. only the Target class
C. any class in the test package
D. any class that extends Target
第5题:
[A] set [B] exact [C] given [D] placed