多选题Which two are true regarding a web application class loader?()AA web application may override the web container’s implementation classes.BA web application running in a J2EE product may override classes in the javax.* namespace.CA web application class

题目
多选题
Which two are true regarding a web application class loader?()
A

A web application may override the web container’s implementation classes.

B

A web application running in a J2EE product may override classes in the javax.* namespace.

C

A web application class loader may NOT override any classes in the java.* and javax.* namespaces.

D

Resources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResource.


相似考题
更多“多选题Which two are true regarding a web application class loader?()AA web application may override the web container’s implementation classes.BA web application running in a J2EE product may override classes in the javax.* namespace.CA web application class”相关问题
  • 第1题:

    In which three directories, relative to a web application’s root, may a tag library descriptor file reside when deployed directly into a web application?()

    • A、 /WEB-INF
    • B、 /META-INF
    • C、 /WEB-INF/tlds
    • D、 /META-INF/tlds
    • E、 WEB-INF/resources
    • F、 /META-INF/resources

    正确答案:A,C,E

  • 第2题:

    Which the statement is true about web container session management()?

    • A、 Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
    • B、 To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
    • C、 If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
    • D、 The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

    正确答案:C

  • 第3题:

    Which the two about WAR files are true?()

    • A、 WAR files must be located in the web application library directory.
    • B、 WAR files must contain the web application deployment descriptor.
    • C、 WAR files must be created by using archive tools to designed specifically for that purpose. 
    • D、 The web container must serve the content of any META-INF directory located in a WAR file.
    • E、 The web container must allow access to resources in JARs in the web application library directory

    正确答案:B,E

  • 第4题:

    Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application.  In which object can the data that A shares with B be stored?()

    • A、 HttpSession
    • B、 ServletConfig
    • C、 ServletContext
    • D、 HttpServletRequest
    • E、 HttpServletResponse

    正确答案:D

  • 第5题:

    You are creating a templated Web control for use in your Web application. You need to add the Web control to your Web application pages without compiling your control into a .dll file. What should you do?()

    • A、Ensure that the Web control inherits from the WebControl class.
    • B、Ensure that the Web control inherits from the Control class.
    • C、Ensure that the Web control inherits from the CompositeControl class.
    • D、Ensure that the Web control inherits from the UserControl class.

    正确答案:D

  • 第6题:

    You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class. Which form of authentication should you use?()

    • A、 Anonymous
    • B、 Certificate
    • C、 Forms
    • D、Microsoft Windows Integrated Security

    正确答案:D

  • 第7题:

    多选题
    Which the two about WAR files are true?()
    A

    WAR files must be located in the web application library directory.

    B

    WAR files must contain the web application deployment descriptor.

    C

    WAR files must be created by using archive tools to designed specifically for that purpose.

    D

    The web container must serve the content of any META-INF directory located in a WAR file.

    E

    The web container must allow access to resources in JARs in the web application library directory


    正确答案: D,C
    解析: 暂无解析

  • 第8题:

    多选题
    In which two locations can library dependencies be defined for a web application? ()
    A

    the web application deployment descriptor

    B

    the /META-INF/dependencies.xml file

    C

    the /META-INF/MANIFEST.MF manifest file

    D

    the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath


    正确答案: A,C
    解析: 暂无解析

  • 第9题:

    多选题
    Which the two are true regarding a web application class loader?()
    A

    A web application may override the web container’s implementation classes

    B

    A web application running in a J2EE product may override classes in the javax.* namespace

    C

    A web application class loader may NOT override any classes in the java.* and javax.*  namespace

    D

    Resources in the WAR class directory or in any of the JAR files within the library directory may  be accessed using the J2SE semantics of getResource

    E

    Resources in the WAR class directory or in any of the JAR files within the library directory  cannot be accessed using the J2SE semantics of getResource


    正确答案: E,B
    解析: 暂无解析

  • 第10题:

    多选题
    In which two web application directories can dependent classes and libraries be located? ()
    A

    /WEB-INF/lib as a JAR file

    B

    /META-INF/lib as a JAR file

    C

    /classes as compiled class files

    D

    /WEB-INF/lib as compiled class files

    E

    /WEB-INF/classes as compiled class files

    F

    /META-INF/classes as compiled class files


    正确答案: A,E
    解析: 暂无解析

  • 第11题:

    单选题
    Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application.  In which object can the data that A shares with B be stored?()
    A

     HttpSession

    B

     ServletConfig

    C

     ServletContext

    D

     HttpServletRequest

    E

     HttpServletResponse


    正确答案: E
    解析: 暂无解析

  • 第12题:

    多选题
    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 page

    B

    configure a listener in the TLD file using the  element

    C

    Include a  element in the web application deployment descriptor

    D

    configure a listener in the application deployment descriptor, using the  element

    E

    Include a class implementing ServletContextListener as part of the web application deploymen


    正确答案: D,B
    解析: 暂无解析

  • 第13题:

    In which two web application directories can dependent classes and libraries be located? ()

    • A、 /WEB-INF/lib as a JAR file
    • B、 /META-INF/lib as a JAR file
    • C、 /classes as compiled class files
    • D、 /WEB-INF/lib as compiled class files
    • E、 /WEB-INF/classes as compiled class files
    • F、 /META-INF/classes as compiled class files

    正确答案:A,E

  • 第14题:

    Your web application requires the ability to load and remove web files dynamically to the web container’s filesystem. Which two HTTP methods are used to perform these actions?()

    • A、PUT
    • B、POST
    • C、SEND
    • D、DELETE
    • E、REMOVE

    正确答案:A,D

  • 第15题:

    In which two locations can library dependencies be defined for a web application? ()

    • A、 the web application deployment descriptor
    • B、 the /META-INF/dependencies.xml file
    • C、 the /META-INF/MANIFEST.MF manifest file
    • D、 the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath

    正确答案:C,D

  • 第16题:

    You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls.You need to ensure that the child controls are properly output to the browser.Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do?()

    • A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.
    • B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class
    • C、Override the CreateChildControls method of the base class. Add the child controls to the base container.
    • D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.

    正确答案:C

  • 第17题:

    You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls. You need to ensure that the child controls are properly output to the browser. Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do? ()

    • A、Override the EnsureChildControls method of the base class. Add the child controls to the base container.
    • B、Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class.
    • C、Override the CreateChildControls method of the base class. Add the child controls to the base container.
    • D、Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.

    正确答案:C

  • 第18题:

    单选题
    Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()
    A

     /conf/web.xml

    B

     /WEB-INF/web.xml

    C

     /conf/server.xml

    D

     /META-INF/web.xml

    E

     /WEB-INF/rules.xml

    F

     /META-INF/server. Xml


    正确答案: D
    解析: 暂无解析

  • 第19题:

    多选题
    You are a systems administrator responsible for managing a Windows Server 2008 Web Server Currently,there are no Web sites configured on the server. You need to configure the server to host two Web applications: Engineering App and Sales App. Both Web applications must be accessible by using HTTPport 80 without the use of host headers. Also, you must protect against problems in one Web applicationaffecting the performance or reliability of the other Web application. Which two steps should you take tomeet these requirements?()
    A

    Create a single Web site that contains both Web applications.

    B

    Create two Web sites, one for each Web application.

    C

    Assign both Web applications to the same application pool.

    D

    Assign each Web application to its own application pool.


    正确答案: B,D
    解析: 暂无解析

  • 第20题:

    多选题
    In which three directories, relative to a web application’s root, may a tag library descriptor file reside when deployed directly into a web application?()
    A

    /WEB-INF

    B

    /META-INF

    C

    /WEB-INF/tlds

    D

    /META-INF/tlds

    E

    WEB-INF/resources

    F

    /META-INF/resources


    正确答案: E,C
    解析: 暂无解析

  • 第21题:

    单选题
    Which statement is true about web container session management?()
    A

    Access to session-scoped attributes is guaranteed to be thread-safe by the web container.

    B

    To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.

    C

    If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.

    D

    The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.


    正确答案: B
    解析: 暂无解析

  • 第22题:

    多选题
    Your web application requires the ability to load and remove web files dynamically to the web container’s filesystem. Which two HTTP methods are used to perform these actions?()
    A

    PUT

    B

    POST

    C

    SEND

    D

    DELETE

    E

    REMOVE


    正确答案: B,C
    解析: 暂无解析

  • 第23题:

    多选题
    In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()
    A

    /WEB-INF

    B

    /META-INF

    C

    /WEB-INF/tlds

    D

    /META-INF/tlds

    E

    /WEB-INF/resources

    F

    /META-INF/resources


    正确答案: A,D
    解析: 暂无解析