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

题目

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.
参考答案和解析
正确答案:C,D
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are migrating a solution to Windows Azure.   The solution includes a web application and a business logic layer.  The web application runs on three dual-core servers.  The business logic layer runs on two quad-core servers.   The Windows Azure application must match or exceed the current hardware specifications.  You need to recommend role instance sizes that minimize cost.  What should you recommend?()

  • A、 Small for the web application and Medium for the business logic layer
  • B、 Small for the web application and Large for the business logic layer
  • C、 Medium for the web application and Large for the business logic layer
  • D、 Large for the web application and Extra Large for the business logic layer

正确答案:C

第2题:

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

第3题:

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

正确答案:C,D

第4题:

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

第5题:

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

第6题:

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

正确答案:B

第7题:

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

第8题:

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,E

第9题:

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

第10题:

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

更多相关问题