True true
False true
False true 0
True true Infinity
False true Infinity
第1题:
A.120
B.24
C.14
D.编译错误
第2题:
A.public int compareTo(Object o){/*more code here*/}
B.public int compareTo(Score other){/*more code here*/}
C.public int compare(Score s1,Score s2){/*more code here*/}
D.public int compare(Object o1,Object o2){/*more code here*/}
第3题:
A.${trueorfalse}
B.${requestScope[foo][0]>500}
C.${requestScope[’foo’][1]=420}
D.${(requestScope[’foo’][0]lt50)&&(3gt2)}
第4题:
Given the element from the web application deployment descriptor:
第5题:
程序: class TestApp{ public static void main(String[] args){ System.out.println(multiply(2,3,4,5)); } public int multiply(int[] nums){ int result = 1; for(int x :nums) result *= x; return result; } } 程序运行后的输出是哪项?()
第6题:
classTestApp{publicstaticvoidmain(String[]args){System.out.println(multiply(2,3,4,5));}publicintmultiply(int…nums){intresult=1;for(intx:nums)result*=x;//result=result*x;returnresult;}}2、6、24、120程序运行后的输出是哪项?()
A.14
B.编译错误
C.120
D.24
第7题:
A.Foo { public int bar() { return 1; }
B.new Foo { public int bar() { return 1; }
C.new Foo() { public int bar() { return 1; }
D.new class Foo { public int bar() { return 1; }
第8题:
A.Truetrue
B.Falsetrue
C.Falsetrue0
D.TruetrueInfinity
E.FalsetrueInfinity
第9题:
class TestApp{ public static void main(String[] args){ System.out.println(multiply(2,3,4,5)); } public int multiply(int… nums){ int result = 1; for(int x :nums) result *= x; //result =result*x; return result; } } 2、6、24、120 程序运行后的输出是哪项?()
第10题:
Given: 6.<% int[] nums = {42, 420, 4200}; 7.request.setAttribute("foo", nums); %> Which two successfully translate and result in a value of true?()