<b></b>
<b>12</b>
The JSP fails to execute.
<% int i = 12 %><b><%= i %></b>
第1题:
11. public static void main(String[] args) { 12. Object obj =new int[] { 1,2,3 }; 13. int[] someArray = (int[])obj; 14. for (int i: someArray) System.out.print(i +“ “) 15. } What is the result? ()
第2题:
Given the element from the web application deployment descriptor:
第3题:
Giventheelementfromthewebapplicationdeploymentdescriptor:<jsp-property-group><url-pattern>/main/page1.jsp</url-pattern><scripting-invalid>true</scripting-invalid></jsp-property-group>andgiventhat/main/page1.jspcontains:<%inti=12;%><b><%=i%></b>Whatistheresult?()
A.<b></b>
B.<b>12</b>
C.TheJSPfailstoexecute.
D.<%inti=12%><b><%=i%></b>
第4题:
11. class Converter { 12. public static void main(String[] args) { 13. Integer i = args[0]; 14. int j = 12; 15. System.out.println(”It is “ + (j==i) + “that j==i.”); 16. } 17. } What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?()
第5题:
public static void main(String[] args) { for (int i=0;i<= 10;i++){ if( i>6) break; } System.out.println(i); } What is the result?()
第6题:
Which two are valid values for the
第7题:
A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()
第8题:
A. It is true that j==i.
B. It is false that j==i.
C. An exception is thrown at runtime.
D. Compilation fails because of an error in line 13.
第9题:
Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains:
第10题:
public class Delta { static boolean foo(char c) { System.out.print(c); return true; } public static void main( String[] argv ) { int i =0; for ( foo(‘A’); foo(‘B’)&&(i<2); foo(‘C’)){ i++ ; foo(‘D’); } } } What is the result?()