网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: What is the result?()
A
<b></b>
B
<b>12</b>
C
The JSP fails to execute.
D
<% int i = 12 %><b><%= i %></b>
参考答案
参考解析
解析:
暂无解析
更多 “单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: What is the result?()A b/bB b12/bC The JSP fails to execute.D % int i = 12 %b%= i %/b” 相关考题
考题
Giventheelementfromthewebapplicationdeploymentdescriptor:jsp-property-groupurl-pattern/main/page1.jsp/url-patternscripting-invalidtrue/scripting-invalid/jsp-property-groupandgiventhat/main/page1.jspcontains:%inti=12;%b%=i%/bWhatistheresult?()A.b/bB.b12/bC.TheJSPfailstoexecute.D.%inti=12%b%=i%/b
考题
Given:What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?()
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.
考题
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? ()A、 1 2 3B、 Compilation fails because of an error in line 12.C、 Compilation fails because of an error in line 13.D、 Compilation fails because of an error in line 14.E、 A ClassCastException is thrown at runtime.
考题
Which two are valid values for the element inside a element of a web application deployment descriptor?()A、 NULLB、 SECUREC、 INTEGRALD、 ENCRYPTEDE、 CONFIDENTIAL
考题
Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: % int i = 12; % %= i % What is the result?()A、b/bB、b12/bC、The JSP fails to execute.D、% int i = 12 %b%= i %/b
考题
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?()A、Include a listener directive in a JSP pageB、configure a listener in the TLD file using the elementC、Include a element in the web application deployment descriptorD、configure a listener in the application deployment descriptor, using the elementE、Include a class implementing ServletContextListener as part of the web application deploymen
考题
public static void main(String[] args) { for (int i=0;i= 10;i++){ if( i6) break; } System.out.println(i); } What is the result?() A、 6B、 7C、 10D、 11E、 Compilation fails.F、 An exception is thrown at runtime.
考题
Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains: foo frodo Which two are true?()A、The foo initialization parameter CANNOT be set programmatically.B、Compilation fails because getInitParameter returns type Object.C、The foo initialization parameter is NOT a servlet initialization parameter.D、Compilation fails because ServletContext does NOT have a getInitParameter method.E、The foo parameter must be defined within the element of the deployment descriptor.
考题
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?() 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.
考题
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’)(i2); foo(‘C’)){ i++ ; foo(‘D’); } } } What is the result?() A、 ABDCBDCBB、 ABCDABCDC、 Compilation fails.D、 An exception is thrown at runtime.
考题
Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable 343./mainError.jsp 344. 345. 346.java.lang.ClassCastException 347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A、The deployment descriptor is invalid.B、The container invokes mainError.jsp.C、The container invokes castError.jsp.D、Neither mainError.jsp nor castError.jsp is invoked.
考题
public class Test { public int aMethod() { static int i = 0; i++; return i; } public static void main (String args[]) { Test test = new Test(); test.aMethod(); int j = test.aMethod(); System.out.println(j); } } What is the result?() A、 0B、 1C、 2D、 Compilation fails.
考题
单选题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’)(i2); foo(‘C’)){ i++ ; foo(‘D’); } } } What is the result?()A
ABDCBDCBB
ABCDABCDC
Compilation fails.D
An exception is thrown at runtime.
考题
单选题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? ()A
1 2 3B
Compilation fails because of an error in line 12.C
Compilation fails because of an error in line 13.D
Compilation fails because of an error in line 14.E
A ClassCastException is thrown at runtime.
考题
单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: What is the result?()A
b/bB
b12/bC
The JSP fails to execute.D
% int i = 12 %b%= i %/b
考题
单选题Given: What is the result?()A
An exception is thrown at runtime.B
int LongC
Compilation fails.D
Short Long
考题
单选题Given the command line java Pass2 and: What is the result? ()A
doStuff x = 6 main x = 6B
Compilation fails.C
doStuff x = 6 main x = 7D
An exception is thrown at runtime.E
doStuff x = 7 main x = 6F
doStuff x = 7 main x = 7
考题
单选题Given: What is the result?()A
Compilation fails.B
An exception is thrown at runtime.C
doStuff x = 6 main x = 6D
doStuff x = 6 main x = 7E
doStuff x = 7 main x = 6
考题
多选题Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains: foo frodo Which two are true?()AThe foo initialization parameter CANNOT be set programmatically.BCompilation fails because getInitParameter returns type Object.CThe foo initialization parameter is NOT a servlet initialization parameter.DCompilation fails because ServletContext does NOT have a getInitParameter method.EThe foo parameter must be defined within the element of the deployment descriptor.
考题
单选题Given: 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? ()A
Compilation fails because of an error in line 13.B
A ClassCastException is thrown at runtime.C
1 2 3D
Compilation fails because of an error in line 14.E
Compilation fails because of an error in line 12.
考题
单选题public static void main(String[] args) { for (int i=0;i6) break; } System.out.println(i); } What is the result?()A
6B
7C
10D
11E
Compilation fails.F
An exception is thrown at runtime.
考题
单选题Given: What is the result?()A
test endB
Compilation fails.C
test runtime endD
test exception endE
A Throwable is thrown by main at runtime.
考题
单选题public class Test { public static void main(String [] args) { boolean assert = true; if(assert) { System.out.println(”assert is true”); } } } Given: javac -source 1.3 Test.java What is the result?()A
Compilation fails.B
Compilation succeeds with errors.C
Compilation succeeds with warnings.D
Compilation succeeds without warnings or errors.
考题
单选题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?()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.
考题
单选题Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable 343./mainError.jsp 344. 345. 346.java.lang.ClassCastException 347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A
The deployment descriptor is invalid.B
The container invokes mainError.jsp.C
The container invokes castError.jsp.D
Neither mainError.jsp nor castError.jsp is invoked.
考题
多选题Which two are valid values for the element inside a element of a web application deployment descriptor?()ANULLBSECURECINTEGRALDENCRYPTEDECONFIDENTIAL
考题
单选题Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable 343./mainError.jsp 344. 345. 346.java.lang.ClassCastException 347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()A
The deployment descriptor is invalid.B
The container invokes mainError.jsp.C
The container invokes castError.jsp.D
Neither mainError.jsp nor castError.jsp is invoked.
热门标签
最新试卷