Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812.
第1题:
What is the name of the WebLogic specific deployment descriptor of Java Enterprise Application?()
第2题:
If you want to use the Java EE platform’s built-in type of authentication that uses a custom HTML page for authentication. Which two statements are true?()
第3题:
Given this fragment from a Java EE deployment descriptor: 341.
第4题:
Given this fragment from a Java EE deployment descriptor: 124.
第5题:
Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()
第6题:
Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()
第7题:
A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command:java games.cards. Poker What allows the user to do this?()
第8题:
<include/>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>include</dispatcher>
<filter-condition>INCLUDE</filter-condition>
<filter-condition>include</filter-condition>
第9题:
Implementation-Version
Specification-Version
Extension-Name
Specification-Vendor
Implementation-Vendor
第10题:
application.xml
weblogic.xml
web.xml
weblogic-application.xml
config.xml
第11题:
The deployment descriptor is invalid.
The container invokes mainError.jsp.
The container invokes castError.jsp.
Neither mainError.jsp nor castError.jsp is invoked.
第12题:
This deployment descriptor is NOT valid.
The container first looks in the register directory for beta.html.
The container first looks in the register directory for alpha.html.
The container first looks for a servlet mapping in the deployment descriptor.
第13题:
Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()
第14题:
A class games.cards.Poker is correctly defined in the jar file Poker.jar. A user wants to execute the main method of Poker on a UNIX system using the command: java games.cards.Poker What allows the user to do this?()
第15题:
Which three are valid URL mappings to a servlet in a web deployment descriptor?()
第16题:
Which code fragments will succeed in printing the last argument given on the command line to the standard output, and exit gracefully with no output if no arguments are given?() CODE FRAGMENT a: public static void main(String args[]) { if (args.length != 0) System.out.println(args[args.length-1]); } CODE FRAGMENT b: public static void main(String args[]) { try { System.out.println(args[args.length]); } catch (ArrayIndexOutOfBoundsException e) {} } CODE FRAGMENT c: public static void main(String args[]) { int ix = args.length; String last = args[ix]; if (ix != 0) System.out.println(last); } CODE FRAGMENT d: public static void main(String args[]) { int ix = args.length-1; if (ix > 0) System.out.println(args[ix]); } CODE FRAGMENT e: public static void main(String args[]) { try { System.out.println(args[args.length-1]); }catch (NullPointerException e) {} }
第17题:
Which code fragments will succeed in initializing a two-dimensional array named tab with a size that will cause the expression tab[3][2] to access a valid element?() CODE FRAGMENT a: int[][] tab = { { 0, 0, 0 }, { 0, 0, 0 } }; CODE FRAGMENT b: int tab[][] = new int[4][]; for (int i=0; i CODE FRAGMENT c: int tab[][] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; CODE FRAGMENT d: int tab[3][2]; CODE FRAGMENT e: int[] tab[] = { {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0} };
第18题:
You deployed a Java EE Shared Library and want to use it from an application that is also deployed on the same cluster. Which two manifest attributes must be specified at a minimum with corresponding values in the deployment descriptor of the application that requires?()
第19题:
Line 24 can never be reached.
The deployment descriptor is NOT valid.
If line 24 executes, the user’s role will be Admin.
If line 24 executes, the user’s role will be Administrator.
If line 24 executes the user’s role will NOT be predictable.
第20题:
<b></b>
<b>12</b>
The JSP fails to execute.
<% int i = 12 %><b><%= i %></b>
第21题:
Code fragment a.
Code fragment b.
Code fragment c.
Code fragment d.
Code fragment e.
第22题:
Line 24 can never be reached.
The deployment descriptor is NOT valid.
If line 24 executes, the user’s role will be Admin.
If line 24 executes, the user’s role will be Administrator.
If line 24 executes the user’s role will NOT be predictable.
第23题:
The deployment descriptor is invalid.
The container invokes mainError.jsp.
The container invokes castError.jsp.
Neither mainError.jsp nor castError.jsp is invoked.