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.
第1题:
Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()
第2题:
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?()
第3题:
Given this fragment from a Java EE deployment descriptor: 124.
第4题:
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} };
第5题:
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?()
第6题:
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.
第7题:
put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java
put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/*.jar
Put Poker.jar in directory /stuff/java,and set the CLASSPATH to include /stuff/java/Poker.jar
put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java
put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/*.jar
put Poker.jar in directory /stuff/java/games/cards,and set the CLASSPATH to include /stuff/java/Poker.jar
第8题:
<b></b>
<b>12</b>
The JSP fails to execute.
<% int i = 12 %><b><%= i %></b>
第9题:
Code fragment a.
Code fragment b.
Code fragment c.
Code fragment d.
Code fragment e.
第10题:
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.
第11题:
Create a user called vip in the security realm
Define a group within the security realm and call it vip
Define a security-role named vip in the deployment descriptor
Declare a security-role-ref for vip in the deployment descripto
第12题:
The deployment descriptor is invalid.
The container invokes mainError.jsp.
The container invokes castError.jsp.
Neither mainError.jsp nor castError.jsp is invoked.
第13题:
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?()
第14题:
Given this fragment from a Java EE deployment descriptor: 341.
第15题:
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) {} }
第16题:
Which element of the web application deployment descriptor defines the servlet class associated with aservlet instance?()
第17题:
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?()
第18题:
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jar
Put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jar
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuffijava/*.jar
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java/Poker.jar
第19题:
<include/>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>include</dispatcher>
<filter-condition>INCLUDE</filter-condition>
<filter-condition>include</filter-condition>
第20题:
Implementation-Version
Specification-Version
Extension-Name
Specification-Vendor
Implementation-Vendor
第21题:
application.xml
weblogic.xml
web.xml
weblogic-application.xml
config.xml
第22题:
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jar
put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jar
put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java
第23题:
The deployment descriptor is invalid.
The container invokes mainError.jsp.
The container invokes castError.jsp.
Neither mainError.jsp nor castError.jsp is invoked.
第24题:
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.